Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

If /something.php is called act as http://www.stgelse.com/xyz is opened

$
0
0
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

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>