Welcome! Log In Create A New Profile

Advanced

rewrite rule? Ready to pay $10

Posted by sm 
sm
rewrite rule? Ready to pay $10
June 29, 2011 02:59PM
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
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 43
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready