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 ^/(.*) $/payroll last; -> this didn't help.
}
When a request is made to http://servername, it forwards these requests to http://10.11.1.53:83 as per round robin. Instead I'd like to forward the request to http://10.11.1.54:91/payroll . I setup /payroll on all the ports specified under mongrel.
Thanks