Nginx and Websphere

sampy nginx-forum at nginx.us
Fri May 29 16:53:12 UTC 2015


unclepieman Wrote:
-------------------------------------------------------
> Why redirect instead of a proxy_pass?

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

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,259127,259268#msg-259268



More information about the nginx mailing list