<div id="reply-content">
Why redirect instead of a proxy_pass?</div><div id="reply-content"><br></div><div id="2D7C515F63E648BDB405291014B6EF0F">-- <br>Payam Chychi<br>Network Engineer / Security Specialist<div><br></div></div>
<p style="color: #A0A0A8;">On Thursday, May 28, 2015 at 8:50 AM, sampy wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<div id="quoted-message-content"><div><div>Francis Daly Wrote:</div><div>-------------------------------------------------------</div><blockquote type="cite"><div><div>On Thu, May 28, 2015 at 04:15:08AM -0400, sampy wrote:</div><div><br></div><div>Hi there,</div><div><br></div><blockquote type="cite"><div>I changed both possibilities and the "curl" shows the default web of</div></blockquote><div>nginx.</div><div><br></div><div>I'm not sure what state things are in now.</div><div><br></div><div>Can you copy-paste your current config, plus your curl requests and</div></div></blockquote><div><br></div><div> upstream webint {</div><div> ip_hash;</div><div> server wasint-1.carreras.sa;</div><div> server wasint-2.carreras.sa:9080;</div><div> }</div><div><br></div><div> server {</div><div><br></div><div> listen 80;</div><div> server_name web.domain.com;</div><div><br></div><div><br></div><div> location / {</div><div> #proxy_set_header Host $host;</div><div> proxy_set_header X-Real-IP $remote_addr;</div><div> proxy_set_header X-Forwarded-For</div><div>$proxy_add_x_forwarded_for;</div><div> #proxy_redirect http://webint/WebApp /;</div><div> proxy_redirect http://webint /;</div><div> }</div><div><br></div><div> }</div><div><br></div><div><br></div><blockquote type="cite"><div><div>responses?</div><div><br></div><div> curl -i http://web.domain.com/</div></div></blockquote><div>result: default nginx web</div><blockquote type="cite"><div> curl -i http://web.domain.com/WebApp/</div></blockquote><div>result:</div><div>HTTP/1.1 404 Not Found</div><div>Server: nginx/1.8.0</div><div>Date: Thu, 28 May 2015 15:50:30 GMT</div><div>Content-Type: text/html</div><div>Content-Length: 168</div><div>Connection: keep-alive</div><div><br></div><div><html></div><div><head><title>404 Not Found</title></head></div><div><body bgcolor="white"></div><div><center><h1>404 Not Found</h1></center></div><div><hr><center>nginx/1.8.0</center></div><div></body></div><div></html></div><div><br></div><div>Thanks</div><blockquote type="cite"><div><div><br></div><div>Thanks,</div><div><br></div><div> f</div><div>-- </div><div>Francis Daly francis@daoine.org</div><div><br></div><div>_______________________________________________</div><div>nginx mailing list</div><div>nginx@nginx.org</div><div>http://mailman.nginx.org/mailman/listinfo/nginx</div></div></blockquote><div><br></div><div>Posted at Nginx Forum: http://forum.nginx.org/read.php?2,259127,259231#msg-259231</div><div><br></div><div>_______________________________________________</div><div>nginx mailing list</div><div>nginx@nginx.org</div><div>http://mailman.nginx.org/mailman/listinfo/nginx</div></div></div>
</blockquote>
<div>
<br>
</div>