From aaaac782f1586b361d7c6cf908eb20f98fbebd1f Mon Sep 17 00:00:00 2001 From: Eddie Lau <kahlau@ebay.com> Date: Thu, 24 Sep 2015 14:30:39 -0500 Subject: [PATCH] MAGETWO-40533: Web setup tool is not accessible in nginx - fixed nginx.conf --- nginx.conf.sample | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nginx.conf.sample b/nginx.conf.sample index 01b16349815..0d7568caeb5 100644 --- a/nginx.conf.sample +++ b/nginx.conf.sample @@ -33,7 +33,7 @@ location /setup { include fastcgi_params; } - location ~ /setup/(?!pub/). { + location ~ ^/setup/(?!pub/). { deny all; } } @@ -41,7 +41,7 @@ location /setup { location /update { root $MAGE_ROOT; - location ~ /update/index.php { + location ~ ^/update/index.php { fastcgi_pass fastcgi_backend; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; @@ -49,7 +49,7 @@ location /update { } # deny everything but index.php - location ~ /update/(?!pub/). { + location ~ ^/update/(?!pub/). { deny all; } } -- GitLab