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

Nginx reverse proxy redirection

$
0
0
Hi,

I am using Nginx as a reverse proxy and when I login in my web interface I am redirected to the original URL. I would like to avoid it and always keep the "server_name" as URL. Is it possible ?

This is my /etc/nginx/conf.d/my_app.conf :

server {
listen 443 ssl;
server_name my-app.net;
ssl_certificate /etc/pki/tls/certs/my-app.cer;
ssl_certificate_key /etc/pki/tls/private/my-app.key;
ssl_protocols TLSv1.1 TLSv1.2;
access_log /var/log/nginx/my-app.access.log main;

location / {
proxy_pass http://ip_of_the_app:7180/;
proxy_redirect off;
}
}

I connect on the http://my-app.net, then enter login informations and I am redirected to http://ip_of_the_app:7180 at the same login page, then I have to login again.

Can you help me on this case ?

Thanks,

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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