Monday, August 22, 2016

Nginx reverse proxy

proxy_pas without path:

location /some/path/ {
   proxy_pass http://new.domain;
}
http://orig.domain/some/path/x --> http://new.domain/some/path/x

proxy_pas case insensitive:

location ~* /some/path/ {
   proxy_pass http://new.domain;
}

No comments:

Post a Comment