Revert "Update caddy"

This reverts commit 951e5b2956.
This commit is contained in:
2023-04-15 20:41:21 +02:00
parent 66b014c076
commit b13654df15
4 changed files with 21 additions and 7 deletions

35
Caddyfile Normal file
View File

@@ -0,0 +1,35 @@
bensuperpc.org {
root * /var/www/html
php_fastcgi wordpress:9000
file_server
encode gzip
@disallowed {
path /xmlrpc.php
path *.sql
path /wp-content/uploads/*.php
}
rewrite @disallowed '/index.php'
respond /uploads/*.php 404
}
www.bensuperpc.org {
redir https://{host}{uri}
}
bensuperpc.fr {
redir https://{host}{uri}
}
www.bensuperpc.fr {
redir https://{host}{uri}
}
bensuperpc.com {
redir https://{host}{uri}
}
www.bensuperpc.com {
redir https://{host}{uri}
}