From d72d85d66f79f2cd6437c5db386b20a1135e6fed Mon Sep 17 00:00:00 2001 From: Anton Reutov Date: Sat, 16 Sep 2017 20:49:24 +0300 Subject: [PATCH] Update magento.stpl Fix docroot to sdocroot --- .../debian/7/templates/web/nginx/php5-fpm/magento.stpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install/debian/7/templates/web/nginx/php5-fpm/magento.stpl b/install/debian/7/templates/web/nginx/php5-fpm/magento.stpl index f067f63d9..384ae09f1 100644 --- a/install/debian/7/templates/web/nginx/php5-fpm/magento.stpl +++ b/install/debian/7/templates/web/nginx/php5-fpm/magento.stpl @@ -2,7 +2,7 @@ server { listen %ip%:%web_ssl_port%; server_name %domain_idn% %alias_idn%; - root %docroot%/pub; + root %sdocroot%/pub; index index.php; autoindex off; charset UTF-8; @@ -19,7 +19,7 @@ server { # PHP entry point for setup application location ~* ^/setup($|/) { - root %docroot%; + root %sdocroot%; location ~ ^/setup/index.php { fastcgi_pass %backend_lsnr%; @@ -39,7 +39,7 @@ server { # PHP entry point for update application location ~* ^/update($|/) { - root %docroot%; + root %sdocroot%; location ~ ^/update/index.php { fastcgi_split_path_info ^(/update/index.php)(/.+)$; @@ -69,7 +69,7 @@ server { deny all; } - alias %docroot%/pub/; + alias %sdocroot%/pub/; add_header X-Frame-Options "SAMEORIGIN"; }