mirror of
https://github.com/tschettervictor/bsd-apps.git
synced 2025-12-16 02:28:32 +01:00
31 lines
569 B
Caddyfile
31 lines
569 B
Caddyfile
{
|
|
# debug
|
|
}
|
|
|
|
yourhostnamehere:80, :80 {
|
|
root * /usr/local/www/wordpress
|
|
encode gzip
|
|
file_server
|
|
|
|
log {
|
|
output file /var/log/yourhostnamehere.log
|
|
}
|
|
|
|
php_fastcgi 127.0.0.1:9000 {
|
|
env front_controller_active true
|
|
}
|
|
|
|
@forbidden {
|
|
not path /wp-includes/ms-files.php
|
|
path /xmlrpc.php
|
|
path *.sql
|
|
path /wp-content/uploads/*.php
|
|
path /wp-content/debug.log
|
|
path /wp-admin/includes/*.php
|
|
path /wp-includes/*.php
|
|
path /wp-config.php
|
|
path /.user.ini
|
|
}
|
|
respond @forbidden 403
|
|
}
|