From 3d2231ba56fc5e8200a44013ab66abde8065b7dc Mon Sep 17 00:00:00 2001 From: Anton Reutov Date: Sat, 16 Sep 2017 20:59:01 +0300 Subject: [PATCH] Update magento.stpl Fix docroot to sdocroot --- install/rhel/7/templates/web/nginx/php-fpm/magento.stpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install/rhel/7/templates/web/nginx/php-fpm/magento.stpl b/install/rhel/7/templates/web/nginx/php-fpm/magento.stpl index f067f63d9..384ae09f1 100644 --- a/install/rhel/7/templates/web/nginx/php-fpm/magento.stpl +++ b/install/rhel/7/templates/web/nginx/php-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"; }