Questions tagged «reverse-proxy»

1
Nginx反向代理重定向
我nginx用作反向代理,当我在Web界面中登录时,我被重定向到代理URL。我想避免这种情况,并始终将“ server_name”保留为URL。可能吗? 这是我的/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; } } 我连接上http://my-app.net,输入登录信息,然后将我重定向到http://ip_of_the_app:7180同一登录页面,然后必须再次登录。可以避免这种双重登录吗?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.