Quantcast
Channel: Nginx Forum - Other discussion
Viewing all articles
Browse latest Browse all 972

preserve url in browser with proxy_pass redirection is not working

$
0
0
Hi ,

I am having a custom domain ( say customdomain.com) and i want to redirect to another domain page ( say webapp.com/at/user). The destination domain has ssl enabled so that it will be redirected to it's https version automatically. I have created nginx configuration as below :

server {

listen 80;
listen [::] 80;
server_name customdomain.com;
location {
proxy_pass http://webapp.com/at/user;
}
}

When i open customdomain.com in browser, the page from webapp.com/at/user is loading but the URL ( customdomain.com) is not preserved in browser address bar. It is showing the https://webapp.com/at/user. Any idea on how to fix this?

But the preserving url shall work if https is not enabled in webapp.com.

Any help would be really appreciated. Thanks in advance.

Viewing all articles
Browse latest Browse all 972

Latest Images

Trending Articles



Latest Images

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