Browse Source

Status Pages

old-stable
Mitesh Shah 12 years ago
parent
commit
1255923bcc
  1. 3
      etc/nginx/common/allowed_ip.conf
  2. 14
      etc/nginx/common/locations.conf

3
etc/nginx/common/allowed_ip.conf

@ -0,0 +1,3 @@
# Allowd IP Address
allow 127.0.0.1;
deny all;

14
etc/nginx/common/locations.conf

@ -47,6 +47,18 @@ location /pma {
rewrite ^/* /phpmyadmin last;
}
# Status Pages
location /nginx_status {
stub_status on;
access_log off;
include common/allowed_ip.conf;
}
location ~ ^/(status|ping) {
include fastcgi_params;
fastcgi_pass php;
include common/allowed_ip.conf;
}
# Security Settings For Better Privacy
@ -75,4 +87,4 @@ location /wp-content/uploads/ {
#Prevent Direct Access Of PHP Files From Web Browsers
deny all;
}
}
}
Loading…
Cancel
Save