Hello,
I am new and in need of help. What I currently have is a nginx webserver (referred to as: web-server). It is listening on hostname and ip with port 80 (HTTP), 8998 (HTTPS) and 443 (HTTPS). When I call the server by its name or ip it will work on any port 80 with http and the others with https.
What I try to do now is forwarding a non-existent domain (referred to as: dest-domain) to this server.
If I create a rule that will redirect the domain to the server it works. I can type in my browser http://dest-domain/ and it will be redirected but also renamed to http://dest-domain/. But I want it to be http://dest-domain/.
If I create rule that will forward the call it wiorks with HTTP but not HTTPS. So if I create a rule that will forward "dest-domain" to IP: "<web-server-ip>" Port: 80 it works. I can call http://dest-domain/ and I get the content of the webserver but the browser still shows http://dest-domain.
But if I create a rule that forward "dest-domain" to IP: "<web-server-ip>" Port: 443 or 8998 it doesn't work. If I type in http://dest-domain I will obviously get an error 400 bad request because I try to speak HTTP on an HTTPS connection and thats what I get as answer but if I change the call to https://dest-domain I always get a 502 bad gateway.
Am I missing something here? Maybe a logical mistake or did anyone else have this issue?
Thank you very much! Hopefully any of you has any idea.
Solved! Go to Solution.
NHP was being used here and in NHP Settings Proxy style requests option was enabled which was causing the issue
NHP was being used here and in NHP Settings Proxy style requests option was enabled which was causing the issue
Corporate Headquarters
6220 America Center Drive
San Jose, CA 95002 USA