caddy-php-fpm/Caddyfile

17 lines
270 B
Caddyfile

{
supervisor {
php-fpm {
dir /var/www/html
}
}
}
:80 {
root * /var/www/html
php_fastcgi 127.0.0.1:9000
encode gzip
file_server
rewrite {
if {path} not_match ^\/wp-admin
to {path} {path}/ /index.php?_url={uri}
}
}