From 035ca114c77d5db71629fa622a9b0d6958b2bb6d Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Wed, 9 Sep 2015 00:41:46 +0200 Subject: [PATCH] Error in nginx.conf regarding non-root installations --- conf/nginx.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 50d1df2..dcec25e 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -17,12 +17,12 @@ location PATHTOCHANGE/ { fastcgi_param SCRIPT_FILENAME $request_filename; } - location ^~ /bin/ { + location ^~ PATHTOCHANGE/bin/ { deny all; return 403; } - location ^~ /config/ { + location ^~ PATHTOCHANGE/config/ { deny all; return 403; } @@ -35,7 +35,7 @@ location PATHTOCHANGE/ { rewrite ^PATHTOCHANGE/rest/(.*)\.view$ PATHTOCHANGE/rest/index.php?action=$1 last; rewrite ^PATHTOCHANGE/rest/fake/(.+)$ PATHTOCHANGE/play/$1 last; } - location /rest { + location PATHTOCHANGE/rest { limit_except GET POST { deny all; }