Просмотр исходного кода

Update caching.stpl

Minor fixes for caching.stpl template
Anton Reutov 8 лет назад
Родитель
Сommit
2f7c1ffc90
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      install/debian/8/templates/web/nginx/caching.stpl

+ 3 - 3
install/debian/8/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 cache;
         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;}