proxy_pass not passing to dynamic $host
nginx-forum at nginx.us
Sat Nov 2 14:21:14 UTC 2013
I added rewrite command so that the url doesn't show IP passed to the nginx.
Curl gives a 302 because it doesnt have the sessionid with it. If there is a
session id that is passed to the application running on
http://18.104.22.168:8080/test, it will take us to app. I can see in
application logs that jsessionid does not get there and hence it redirects
to the login page.
Curl from upstream gave me-
[ec2-user at clarity-test conf]$ curl -i -H
HTTP/1.1 302 Found
Date: Sat, 02 Nov 2013 14:13:05 GMT
[ec2-user at clarity-test conf]$ curl -i -d key=value
HTTP/1.1 302 Moved Temporarily
Date: Sat, 02 Nov 2013 14:11:53 GMT
If I remove the rewrite command and provides the html page in proxy_pass
i.e. proxy_pass http://$ec2instance:8080/test/test.html, it gets to the
test.html page of the application but does not load any .css .js files and
says open failed "/opt/nginx/html/test/test.html.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,244308,244369#msg-244369
More information about the nginx