Document WHM, cPanel and WordPress!

This commit is contained in:
2022-08-08 14:44:56 +00:00
parent 83dda4c7a7
commit 7d2222a3bc
7 changed files with 93 additions and 17 deletions

View File

@@ -0,0 +1,32 @@
server {
listen 443 http2 ssl;
server_name yowpdomain.example.com;
index index.php;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
# hide any hidden files
location ~ /\. {
deny all;
}
# except for .well-known
location ^~ /.well-known {
allow all;
}
# limit xmlrpc access
# this is a management API
location ~* /xmlrpc.php$ {
allow 127.0.0.1;
deny all;
}
}