From caddcb712a11bf68b0efba984506040ba45ba214 Mon Sep 17 00:00:00 2001 From: Anton Reutov Date: Fri, 22 Sep 2017 17:55:39 +0300 Subject: [PATCH] Update caching.stpl --- install/rhel/5/templates/web/nginx/caching.stpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install/rhel/5/templates/web/nginx/caching.stpl b/install/rhel/5/templates/web/nginx/caching.stpl index ae1e6929..f027bbc4 100755 --- a/install/rhel/5/templates/web/nginx/caching.stpl +++ b/install/rhel/5/templates/web/nginx/caching.stpl @@ -7,7 +7,7 @@ server { error_log /var/log/%web_system%/domains/%domain%.error.log error; location / { - proxy_pass http://%ip%:%web_port%; + proxy_pass https://%ip%:%web_ssl_port%; proxy_cache %domain%; proxy_cache_valid 15m; @@ -18,7 +18,7 @@ server { location ~* ^.+\.(%proxy_extentions%)$ { proxy_cache off; - root %docroot%; + root %sdocroot%; access_log /var/log/%web_system%/domains/%domain%.log combined; access_log /var/log/%web_system%/domains/%domain%.bytes bytes; expires max; @@ -31,7 +31,7 @@ server { } location @fallback { - proxy_pass http://%ip%:%web_port%; + proxy_pass https://%ip%:%web_ssl_port%; } location ~ /\.ht {return 404;} @@ -40,5 +40,5 @@ server { location ~ /\.hg/ {return 404;} location ~ /\.bzr/ {return 404;} - include %home%/%user%/conf/web/nginx.%domain_idn%.conf*; + include %home%/%user%/conf/web/snginx.%domain_idn%.conf*; }