mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 13:01:52 -07:00
Minor fixes for caching.stpl template
This commit is contained in:
parent
88c1192d59
commit
6c1deef717
1 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ server {
|
||||||
error_log /var/log/%web_system%/domains/%domain%.error.log error;
|
error_log /var/log/%web_system%/domains/%domain%.error.log error;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://%ip%:%web_port%;
|
proxy_pass https://%ip%:%web_ssl_port%;
|
||||||
|
|
||||||
proxy_cache cache;
|
proxy_cache cache;
|
||||||
proxy_cache_valid 15m;
|
proxy_cache_valid 15m;
|
||||||
|
@ -18,7 +18,7 @@ server {
|
||||||
|
|
||||||
location ~* ^.+\.(%proxy_extentions%)$ {
|
location ~* ^.+\.(%proxy_extentions%)$ {
|
||||||
proxy_cache off;
|
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%.log combined;
|
||||||
access_log /var/log/%web_system%/domains/%domain%.bytes bytes;
|
access_log /var/log/%web_system%/domains/%domain%.bytes bytes;
|
||||||
expires max;
|
expires max;
|
||||||
|
@ -31,7 +31,7 @@ server {
|
||||||
}
|
}
|
||||||
|
|
||||||
location @fallback {
|
location @fallback {
|
||||||
proxy_pass http://%ip%:%web_port%;
|
proxy_pass https://%ip%:%web_ssl_port%;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ /\.ht {return 404;}
|
location ~ /\.ht {return 404;}
|
||||||
|
@ -40,5 +40,5 @@ server {
|
||||||
location ~ /\.hg/ {return 404;}
|
location ~ /\.hg/ {return 404;}
|
||||||
location ~ /\.bzr/ {return 404;}
|
location ~ /\.bzr/ {return 404;}
|
||||||
|
|
||||||
include %home%/%user%/conf/web/nginx.%domain_idn%.conf*;
|
include %home%/%user%/conf/web/snginx.%domain_idn%.conf*;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue