mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2025-06-10 20:49:26 +02:00
3
caddy/Caddyfile
Normal file
3
caddy/Caddyfile
Normal file
@ -0,0 +1,3 @@
|
||||
#import /path/to/*.caddy
|
||||
|
||||
import wordpress/Caddyfile
|
19
caddy/wordpress/Caddyfile
Normal file
19
caddy/wordpress/Caddyfile
Normal 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}
|
||||
}
|
Reference in New Issue
Block a user