Welcome! Log In Create A New Profile

Advanced

How to get original request_uri if i use proxy_pass

Posted by leontinus 
How to get original request_uri if i use proxy_pass
February 27, 2013 07:57AM
Hi guys, I need a little help here. 1 of my nginx.conf is as follow :

location ~* ^/help/([A-Za-z0-9-_]+)$ {
proxy_pass http://127.0.0.1:888/help.pl?p1=$1;
}

So for example I open this address : www.mywebsite.com/help/how-to-buy
And on my perl script help.pl I want to get the original request_uri which is help/how-to-buy.
But what i get is help.pl?p1=how-to-buy

So how can I get the original request_uri?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 77
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready