Read thread. Try. Strange, but dont work.
I try this using my own path https://github.com/caddyserver/examples/blob/master/winphp/Caddyfile
on startup d:\php7\php-cgi.exe -b 6545 &
fastcgi / 127.0.0.1:6545 php
And dont work.
Try this (change to my path)
Prompt Go Caddy --
TITLE Caddy Command Prompt
ECHO Shuting down CADDY and subprocesses if running.
taskkill /IM caddy.exe /f /t
ECHO Starting CADDY .
REM PHP FastCGI on windows by default stops after 500 requests due to memory and reliability, but does not restart.
REM Setting PHP_FCGI_MAX_REQUESTS to 0 prevents this behaviour, but you must set a task to restart entire process set periodically
C:\caddy\caddy.exe -quic -log c:\caddy\logs\MAINCADDYRUNLOG.log
REM loop to restart - http://stackoverflow.com/a/34458348/6244
REM Whenever caddy is killed (by the other script, should restart automatically.)
ECHO ReStarting Caddy after shutdown
Echo Restarting Caddy after Shutdown >> c:\logs\filerestarts.txt
date /t >> c:\logs\filerestarts.txt
time /t >> c:\logs\filerestarts.txt
2018/11/02 09:13:11 [INFO] Certificate for mysite. example. com is already being obtained elsewhere and stored; waiting
2018/11/02 09:13:50 [INFO] Certificate for mysite. example. com is already being obtained elsewhere and stored; waiting
So logs ok?
I am php web developer and easy configure a web server on Linux. Every day I use Open Server, XAMMP, Denver e.t.c. And caddy… Any official instructions? Manual? Documentation?