Update caddy

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
2023-04-11 23:32:02 +02:00
parent c07c16f2d7
commit 951e5b2956
4 changed files with 6 additions and 20 deletions

3
caddy/Caddyfile Normal file
View File

@ -0,0 +1,3 @@
#import /path/to/*.caddy
import wordpress/Caddyfile

19
caddy/wordpress/Caddyfile Normal file
View File

@ -0,0 +1,19 @@
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.com {
redir https://bensuperpc.org{uri}
}