Skip to content
Snippets Groups Projects
Commit e19c2ea0 authored by Falko Timme's avatar Falko Timme
Browse files

- Fixed FS#2220.

parent f0a0ea04
No related branches found
No related tags found
No related merge requests found
......@@ -105,8 +105,12 @@ server {
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 @@ server {
fastcgi_intercept_errors on;
}
</tmpl_else>
location ~ \.php$ {
location @php {
deny all;
}
</tmpl_if>
......@@ -147,6 +151,10 @@ server {
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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment