From eddbb15ed078b665a939379caaaa1f20cf8805b0 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Fri, 20 Dec 2013 20:03:46 +0530 Subject: [PATCH] Fixed Issue 98: Allow Access For Status Pages Using Whitelist IP Address OR HTTP Auth --- etc/nginx/common/locations.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/nginx/common/locations.conf b/etc/nginx/common/locations.conf index ba53d020..8627ed09 100644 --- a/etc/nginx/common/locations.conf +++ b/etc/nginx/common/locations.conf @@ -60,12 +60,18 @@ location /phpmyadmin { location /nginx_status { stub_status on; access_log off; + satisfy any; + auth_basic "Restricted Area"; + auth_basic_user_file htpasswd-ee; include common/allowed_ip.conf; } location ~ ^/(status|ping) { include fastcgi_params; fastcgi_pass php; + satisfy any; + auth_basic "Restricted Area"; + auth_basic_user_file htpasswd-ee; include common/allowed_ip.conf; }