If /something.php is called act as http://www.stgelse.com/xyz is opened
April 02, 2015 10:12AM
I want to see response of URL2 if URL1 is opened.

And without redirections, preserving URL1 and pass all GET params to URL2

URL1: "http://182.6.15.191/something.php"
URL2: "http://www.example.com/another"

I tried something like this, but nginx proxy mod is quite huge to understand

location /something.php {
proxy_pass http://somethingelse.com/else;
proxy_set_header Host $host;
}
But this redirects URL and seems like doesn't pass GET params



Edited 1 time(s). Last edit at 04/02/2015 10:13AM by nardev.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 197
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready