Nginx - assigning non-root location to proxy_pass
Posted
by
xyzman
on Server Fault
See other posts from Server Fault
or by xyzman
Published on 2012-08-08T09:56:20Z
Indexed on
2014/06/07
3:32 UTC
Read the original article
Hit count: 455
What I like to do is to proxy requests from http://example.com/proxy/foo
to http://localhost:8060/foo
This config proxies http://example.com/proxy/foo
to http://localhost:8060/proxy/foo
server {
server_name example.com;
location /proxy/ {
proxy_pass http://localhost:8060;
}
location / {
proxy_pass http://localhost:8040;
}
}
© Server Fault or respective owner