mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 13:24:25 -07:00
Update wprocket-webp-express-force-https.stpl
rocket include must go bellow webp rules
This commit is contained in:
parent
59db959b9a
commit
a48621a88e
1 changed files with 4 additions and 3 deletions
|
@ -7,8 +7,6 @@ server {
|
|||
error_log /var/log/%web_system%/domains/%domain%.error.log error;
|
||||
|
||||
root %sdocroot%;
|
||||
# Rocket-Nginx configuration
|
||||
include rocket-nginx/conf.d/default.conf;
|
||||
|
||||
# Serve WebP if browser supports it
|
||||
location ~* ^/wp-content/.*\.(png|jpe?g)$ {
|
||||
|
@ -45,7 +43,10 @@ server {
|
|||
location ~ ^/wp-content/plugins/webp-express/wod/.*\.php$ {
|
||||
proxy_pass https://%ip%:%web_ssl_port%;
|
||||
}
|
||||
|
||||
|
||||
# Rocket-Nginx configuration
|
||||
include rocket-nginx/conf.d/default.conf;
|
||||
|
||||
location / {
|
||||
proxy_pass https://%ip%:%web_ssl_port%;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue