nginx: add wordpress extras file for qzwi node

This commit is contained in:
Rico 2022-05-18 15:51:43 +02:00
parent d6db3ac8ca
commit 4d9b52adf3
Signed by: stillbeben
GPG key ID: AE1066B5BD0B5041

View file

@ -0,0 +1,35 @@
location / {
# This is cool because no php is touched for static content.
# include the "?$args" part so non-default permalinks doesn't break when using query string
try_files $uri $uri/ /index.php?$args;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
location ~* /xmlrpc.php$ {
allow 127.0.0.1;
deny all;
}
if ($request_method !~ ^(GET|POST)$ ) {
return 444;
}
location ~ /\.(svn|git)/* {
deny all;
access_log off;
log_not_found off;
}
location ~ /\.ht {
deny all;
access_log off;
log_not_found off;
}
location ~ /\.user.ini {
deny all;
access_log off;
log_not_found off;
}