Forum: NGINX nginx reverse proxy

E9c993abfd39798bc2d15c98f2bd5c17?d=identicon&s=25 chima s (Guest)
on 2014-03-22 09:04
(Received via mailing list)
Hi,

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


WEB ELB <---> nginx reverse proxy <---> APP ELB <---> Jboss7.

When i access abc.example.com/admin/login.do, i am getting page and
after i
provide username/password and submit,  i am getting connection timeout.

Found the URL get changed to abc.example.com:8080/admin/xxxx

How to get rid of port 8080 in the response URL in nginx.

Below us the nginx-1.4.7 proxy configuration:

upstream appserv {
        server 192.168.1.100:8080 fail_timeout=0;
}

proxy_set_header    X-Real-IP   $remote_addr;
proxy_set_header    Host        $http_host;
proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://appserv/;
proxy_redirect http://appserv/ $scheme://$host/;
proxy_set_header Connection '';


Also tried with
proxy_redirect default
and
proxy_redirect http://appserv/ $scheme://$host:80/;

still got the same issue

Thanks
Chima
36a8284995fa0fb82e6aa2bede32adac?d=identicon&s=25 Francis Daly (Guest)
on 2014-03-24 14:34
(Received via mailing list)
On Sat, Mar 22, 2014 at 01:34:09PM +0530, chima s wrote:

Hi there,

> How to get rid of port 8080 in the response URL in nginx.
The best way is probably to find which machine is putting :8080 in
there,
and configure it not to do that.

Can you see logs or the network traffic at each stage, to see where
:8080 first appears?

  f
--
Francis Daly        francis@daoine.org
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.