ftimme
2012-06-13 e19c2ea0938d3e4ae5654bff500443945e359741
- Fixed FS#2220.
1 files modified
12 ■■■■ changed files
server/conf/nginx_vhost.conf.master 12 ●●●● patch | view | raw | blame | history
server/conf/nginx_vhost.conf.master
@@ -105,8 +105,12 @@
            alias /usr/share/awstats/icon;
        }
<tmpl_if name='php' op='==' value='php-fpm'>
        location ~ \.php$ {
            try_files /non_existing_file.htm @php;
        }
<tmpl_if name='php' op='==' value='php-fpm'>
        location @php {
            try_files $uri =404;
            include /etc/nginx/fastcgi_params;
<tmpl_if name='use_tcp'>
@@ -121,7 +125,7 @@
            fastcgi_intercept_errors on;
        }
</tmpl_else>
        location ~ \.php$ {
        location @php {
            deny all;
        }
</tmpl_if>
@@ -147,6 +151,10 @@
        location <tmpl_var name='htpasswd_location'> { ##merge##
                auth_basic "Members Only";
                auth_basic_user_file <tmpl_var name='htpasswd_path'>.htpasswd;
                location ~ \.php$ {
                    try_files /non_existing_file.htm @php;
                }
        }
</tmpl_loop>