nginx: add wordpress extras file for qzwi node
This commit is contained in:
parent
d6db3ac8ca
commit
4d9b52adf3
1 changed files with 35 additions and 0 deletions
35
data/nginx/files/extras/qzwi/wordpress
Normal file
35
data/nginx/files/extras/qzwi/wordpress
Normal 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;
|
||||||
|
}
|
Loading…
Reference in a new issue