1. My Caddy version (caddy version
): v2.0.0-beta.15
2. How I run Caddy:
a. System environment:
Ubuntu 18.04
b. Command:
./caddy run --config /root/downloads/Caddyfile --adapter caddyfile
c. Service/unit/compose file:
paste full file contents here
d. My complete Caddyfile or JSON config:
xxx.com {
root * /home/roman/testw
php_fastcgi unix//var/run/php/php7.2-fpm.sock
file_server
}
3. The problem I’m having:
PHP does not work as it seems to be not supporting sockets as of now
4. Error messages and/or full log output:
2020/03/05 17:31:06.033 INFO using provided configuration {"config_file": "/root/downloads/Caddyfile", "config_adapter": "caddyfile"}
run: adapting config using caddyfile: parsing caddyfile tokens for 'php_fastcgi': /root/downloads/Caddyfile:3 - Error during parsing: for now, URLs for proxy upstreams only support scheme, host, and port components
5. What I already tried:
Google and found and answer that the above syntax would work (unux//var…)
6. Links to relevant resources:
Question: While i understand from the error message, still asking… is there is a way to run php through socket? Or it would be better to reconfigure php-fpm to use tcp and address?