0
는
location ~ ^/sitemap.(xml|xml\.gz);
proxy_pass: "http://localhost/sitemap/sitemap.$1"
에만 sitemap.xml
일치 하지sitemap.xml.gz
EDIT 1
location ~ ^/sitemap.(.*)$;
proxy_pass: "http://localhost/sitemap/sitemap.$1"
,
일치 항목은 sitemap.xml
과 sitemap.xml.gz
에서 200을 반환하지만 다른 원치 않는 요청도 프록시에서 전달하려고합니다.
location ~ ^/sitemap.(xml|xml\.gz)$
proxy_pass: "http://localhost/sitemap/sitemap.$1"
: