Adjust nginx config
This commit is contained in:
parent
3748bfd0ca
commit
54e01dcb7a
1 changed files with 6 additions and 2 deletions
|
@ -40,12 +40,16 @@ http {
|
|||
}
|
||||
|
||||
location ~* \.(js|css)$ {
|
||||
expires modified 1h;
|
||||
expires 1h;
|
||||
}
|
||||
|
||||
location ~ ^/dwd/(icons|warn_icons)/ {
|
||||
root /home/weewx/public_html;
|
||||
expires 1h;
|
||||
expires 7d;
|
||||
}
|
||||
|
||||
location ~ ^/dwd/[\w]+\.(gif|png) {
|
||||
expires modified 1h;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue