Skip to content

Commit 6c1deef

Browse files
authored
Minor fixes for caching.stpl template
1 parent 88c1192 commit 6c1deef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

install/ubuntu/15.04/templates/web/nginx/caching.stpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ server {
77
error_log /var/log/%web_system%/domains/%domain%.error.log error;
88

99
location / {
10-
proxy_pass http://%ip%:%web_port%;
10+
proxy_pass https://%ip%:%web_ssl_port%;
1111

1212
proxy_cache cache;
1313
proxy_cache_valid 15m;
@@ -18,7 +18,7 @@ server {
1818

1919
location ~* ^.+\.(%proxy_extentions%)$ {
2020
proxy_cache off;
21-
root %docroot%;
21+
root %sdocroot%;
2222
access_log /var/log/%web_system%/domains/%domain%.log combined;
2323
access_log /var/log/%web_system%/domains/%domain%.bytes bytes;
2424
expires max;
@@ -31,7 +31,7 @@ server {
3131
}
3232

3333
location @fallback {
34-
proxy_pass http://%ip%:%web_port%;
34+
proxy_pass https://%ip%:%web_ssl_port%;
3535
}
3636

3737
location ~ /\.ht {return 404;}
@@ -40,5 +40,5 @@ server {
4040
location ~ /\.hg/ {return 404;}
4141
location ~ /\.bzr/ {return 404;}
4242

43-
include %home%/%user%/conf/web/nginx.%domain_idn%.conf*;
43+
include %home%/%user%/conf/web/snginx.%domain_idn%.conf*;
4444
}

0 commit comments

Comments
 (0)