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; }