@ -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
@ -13,10 +13,6 @@ server {
expires max;
proxy_pass $uploads_upstream;
location ~* ^/uploads/.*$ {
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;