+ uploads_upstream conf

This commit is contained in:
2022-12-13 14:40:00 +03:00
parent 71d4b97c46
commit 9fab9307b6
2 changed files with 60 additions and 58 deletions

View File

@ -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

View File

@ -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;
}