From 0f7ea97e12bba87ce38a205b3bac26b8fc020499 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Mon, 27 May 2013 23:32:30 +0300 Subject: [PATCH] nginx disable_symlinks fix --- install/0.9.7/rhel/nginx.conf | 4 ---- install/0.9.7/rhel/templates/web/nginx/default.tpl | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/install/0.9.7/rhel/nginx.conf b/install/0.9.7/rhel/nginx.conf index 318a9a21c..c201f0bb4 100644 --- a/install/0.9.7/rhel/nginx.conf +++ b/install/0.9.7/rhel/nginx.conf @@ -55,10 +55,6 @@ http { gzip_proxied any; - # Symlinks protection - disable_symlinks if_not_owner; - - # Proxy settings proxy_redirect off; proxy_set_header Host $host; diff --git a/install/0.9.7/rhel/templates/web/nginx/default.tpl b/install/0.9.7/rhel/templates/web/nginx/default.tpl index 0e8ba97fa..42296752a 100755 --- a/install/0.9.7/rhel/templates/web/nginx/default.tpl +++ b/install/0.9.7/rhel/templates/web/nginx/default.tpl @@ -28,6 +28,8 @@ server { location ~ /\.hg/ {return 404;} location ~ /\.bzr/ {return 404;} + disable_symlinks if_not_owner from=%docroot%; + include %home%/%user%/conf/web/nginx.%domain%.conf*; }