wcms
wcms copied to clipboard
Caddy seems fine too
I just adapted the Nginx configuration written in #541 to Caddy:
root * /var/www/html
request_body {
max_size 50MB
}
# Files
@files {
path /assets/* /media/*
}
file_server @files
# Rewrite
@rewrite {
not path /assets/* /media/*
}
rewrite @rewrite /index.php
# PHP
php_fastcgi /index.php unix//run/php/php8.2-fpm.sock
This must be in a site block, just like nginx.