From 6cfd3a9c6109b98a5aefca5f590fca962021d5a4 Mon Sep 17 00:00:00 2001 From: Oskari Okko Ojala Date: Wed, 26 Feb 2014 14:27:21 +0200 Subject: [PATCH] Disable /status.html and /status by default --- config/vendor/nginx/conf/wordpress.conf.erb | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/config/vendor/nginx/conf/wordpress.conf.erb b/config/vendor/nginx/conf/wordpress.conf.erb index 753d082ef..c60ae057a 100644 --- a/config/vendor/nginx/conf/wordpress.conf.erb +++ b/config/vendor/nginx/conf/wordpress.conf.erb @@ -46,13 +46,19 @@ server { access_log off; } - # PHP status. /status.html uses /status - location ~ ^/(status|ping)$ { - include /app/vendor/nginx/conf/fastcgi_params; - fastcgi_pass unix:/tmp/php-fpm.socket; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + # # Disable php-fpm /status.html + location = /status.html { + deny all; + access_log off; } + # # PHP status. /status.html uses /status + # location ~ ^/(status|ping)$ { + # include /app/vendor/nginx/conf/fastcgi_params; + # fastcgi_pass unix:/tmp/php-fpm.socket; + # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + # } + # Nginx status. http://wiki.nginx.org/HttpStubStatusModule # location /nginx_status { # # copied from http://blog.kovyrin.net/2006/04/29/monitoring-nginx-with-rrdtool/