nginx disable_symlinks fix

This commit is contained in:
Serghey Rodin 2013-05-27 23:32:30 +03:00
commit 0f7ea97e12
2 changed files with 2 additions and 4 deletions

View file

@ -55,10 +55,6 @@ http {
gzip_proxied any; gzip_proxied any;
# Symlinks protection
disable_symlinks if_not_owner;
# Proxy settings # Proxy settings
proxy_redirect off; proxy_redirect off;
proxy_set_header Host $host; proxy_set_header Host $host;

View file

@ -28,6 +28,8 @@ server {
location ~ /\.hg/ {return 404;} location ~ /\.hg/ {return 404;}
location ~ /\.bzr/ {return 404;} location ~ /\.bzr/ {return 404;}
disable_symlinks if_not_owner from=%docroot%;
include %home%/%user%/conf/web/nginx.%domain%.conf*; include %home%/%user%/conf/web/nginx.%domain%.conf*;
} }