<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Hi,<br><br></div>I have configured nginx as reverse proxy for jboss. All the system are hosted in Amazon cloud and using AWS ELB for both nginx and jboss<br>
<br><br></div>WEB ELB <---> nginx reverse proxy <---> APP ELB <---> Jboss7.<br><br></div><div></div>When i access <a href="http://abc.example.com/admin/login.do">abc.example.com/admin/login.do</a>, i am getting page and after i provide username/password and submit, i am getting connection timeout.<br>
<br></div>Found the URL get changed to <a href="http://abc.example.com:8080/admin/xxxx">abc.example.com:8080/admin/xxxx</a><br><br></div>How to get rid of port 8080 in the response URL in nginx.<br><br>Below us the nginx-1.4.7 proxy configuration:<br>
<br>upstream appserv {<br> server <a href="http://192.168.1.100:8080">192.168.1.100:8080</a> fail_timeout=0;<br>}<br><br>proxy_set_header X-Real-IP $remote_addr;<br>proxy_set_header Host $http_host;<br>
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>proxy_pass <a href="http://appserv/">http://appserv/</a>; <br>proxy_redirect <a href="http://appserv/">http://appserv/</a> $scheme://$host/;<br>proxy_set_header Connection '';<br>
<br><br></div>Also tried with <br>proxy_redirect default<br></div>and<br>proxy_redirect <a href="http://appserv/">http://appserv/</a> $scheme://$host:80/;<br><br></div>still got the same issue<br><br></div>Thanks<br></div>
Chima<br></div>