I completed reverse proxy setup and here is my config.
upstream mongrel {
server 10.11.1.53:83;
server 10.11.1.53:84;
server 10.11.1.54:91;
server 10.11.1.54:92;
}
location ~ \.*$ {
proxy_pass http://mongrel;
rewrite ^/(.*) $/jde last;
}
When a request is made to http://servername, it forwards these requests to http://10.11.1.53:83. Instead I'd like to forward the request to http://10.11.1.54:91/payroll . I setup /payroll on all the ports under mongrel. I tried the following didn't help.
didn't help.
location ~ \.*$ {
proxy_pass http://mongrel;
rewrite ^/(.*) $/jde last;
}
Any help appreciated.
Thanks
Mat