Browse Source

+ uploads_upstream conf

master
Paul 2 years ago
parent
commit
9fab9307b6
  1. 6
      config/nginx/conf.d/vhosts.conf.example
  2. 4
      config/nginx/conf.d/z-wordpress.conf.example

6
config/nginx/conf.d/vhosts.conf.example

@ -17,6 +17,12 @@ map $http_accept $webp_suffix {
"~*webp" ".webp";
}
resolver 8.8.8.8;
map $http_host $uploads_upstream {
wordpress.ru.local.wpstudio.ru "https://somewp.site";
}
server {
server_name
octobercms.ru.local.wpstudio.ru

4
config/nginx/conf.d/z-wordpress.conf.example

@ -13,10 +13,6 @@ server {
expires max;
proxy_pass $uploads_upstream;
}
location ~* ^/uploads/.*$ {
expires max;
proxy_pass $uploads_upstream;
}
location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
access_log off;
}

Loading…
Cancel
Save