Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISPConfig
ISPConfig 3
Commits
e19c2ea0
Commit
e19c2ea0
authored
Jun 13, 2012
by
Falko Timme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed FS#2220.
parent
f0a0ea04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
server/conf/nginx_vhost.conf.master
server/conf/nginx_vhost.conf.master
+10
-2
No files found.
server/conf/nginx_vhost.conf.master
View file @
e19c2ea0
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment