From e19c2ea0938d3e4ae5654bff500443945e359741 Mon Sep 17 00:00:00 2001 From: ftimme Date: Wed, 13 Jun 2012 14:59:56 +0000 Subject: [PATCH] - Fixed FS#2220. --- server/conf/nginx_vhost.conf.master | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/server/conf/nginx_vhost.conf.master b/server/conf/nginx_vhost.conf.master index f68d4276f0..9f13db48ef 100644 --- a/server/conf/nginx_vhost.conf.master +++ b/server/conf/nginx_vhost.conf.master @@ -105,8 +105,12 @@ server { alias /usr/share/awstats/icon; } - location ~ \.php$ { + try_files /non_existing_file.htm @php; + } + + + location @php { try_files $uri =404; include /etc/nginx/fastcgi_params; @@ -121,7 +125,7 @@ server { fastcgi_intercept_errors on; } - location ~ \.php$ { + location @php { deny all; } @@ -147,6 +151,10 @@ server { location { ##merge## auth_basic "Members Only"; auth_basic_user_file .htpasswd; + + location ~ \.php$ { + try_files /non_existing_file.htm @php; + } } -- GitLab