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.