| From | Sent On | Attachments |
|---|---|---|
| mevans336 | Mar 6, 2012 1:08 pm | |
| Cliff Wells | Mar 6, 2012 1:46 pm | |
| Francis Daly | Mar 6, 2012 2:05 pm | |
| mevans336 | Mar 6, 2012 2:06 pm | |
| Cliff Wells | Mar 6, 2012 4:58 pm | |
| Cliff Wells | Mar 6, 2012 5:11 pm | |
| mevans336 | Mar 7, 2012 4:19 am | |
| mevans336 | Mar 7, 2012 4:22 am | |
| Cliff Wells | Mar 7, 2012 4:51 am | |
| mevans336 | Mar 8, 2012 6:14 am | |
| Francis Daly | Mar 8, 2012 10:50 am |
| Subject: | Multiple Upstream Servers Result in Error 310 (net::ERR_TOO_MANY_REDIRECTS) | |
|---|---|---|
| From: | mevans336 (ngin...@nginx.us) | |
| Date: | Mar 6, 2012 1:08:02 pm | |
| List: | ru.sysoev.nginx | |
I have an Nginx reverse-proxy sitting in front of two JBoss servers. If I attempt to add the second JBoss server to the upstream directive, I receive an Error 310 (net::ERR_TOO_MANY_REDIRECTS) from Chrome, IE just displays an "Internet Explorer cannot display this webpage" error. If I comment the second upstream server out a kill -HUP the master process, everything works properly.
I am attempting to use Nginx to rewrite all HTTP requests to HTTPS and upon first contact with our domain, the JBoss application redirects you to https://my.domain.com/home.
Here is my default config file:
upstream jboss_dev_servers { server 10.0.3.15:8080; server 10.0.3.16:8080; }
server { listen 10.0.3.28:80; server_name my.domain.com; location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_next_upstream error timeout invalid_header; rewrite ^ https://$server_name$request_uri? permanent; proxy_pass http://jboss_dev_servers; } }
server { listen 10.0.3.28:443 default ssl; ssl on; ssl_certificate /srv/ssl/combined.crt; ssl_certificate_key /srv/ssl/combined.key; ssl_protocols SSLv3 TLSv1;
server_name my.domain.com;
location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_next_upstream error timeout invalid_header; proxy_pass http://jboss_dev_servers; } }
Any ideas what could be causing this? Is it bouncing the requests back and forth between the two upstream servers somehow?
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,223535,223535#msg-223535
_______________________________________________ nginx mailing list ngi...@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx





