Skip to content

Commit 0f7ea97

Browse files
committed
nginx disable_symlinks fix
1 parent e4b95c9 commit 0f7ea97

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

install/0.9.7/rhel/nginx.conf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ http {
5555
gzip_proxied any;
5656

5757

58-
# Symlinks protection
59-
disable_symlinks if_not_owner;
60-
61-
6258
# Proxy settings
6359
proxy_redirect off;
6460
proxy_set_header Host $host;

install/0.9.7/rhel/templates/web/nginx/default.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ server {
2828
location ~ /\.hg/ {return 404;}
2929
location ~ /\.bzr/ {return 404;}
3030

31+
disable_symlinks if_not_owner from=%docroot%;
32+
3133
include %home%/%user%/conf/web/nginx.%domain%.conf*;
3234
}
3335

0 commit comments

Comments
 (0)