Re: Nginx and Websphere

2015-05-29 Thread Ravikiran Siddhanti
Hi Francis, We have been nginx with Php fpm for the last one year. In the last 2 months we have been seeing php fpm getting overloaded sometimes and eventually leading to 502/500/504 errors returned by nginx. Could you please help us out? Let me what details you would need I would send them in th

Re: Nginx and Websphere

2015-05-29 Thread Francis Daly
On Fri, May 29, 2015 at 12:51:51PM -0400, sampy wrote: > Francis Daly Wrote: > > > location /WebApp { > > > proxy_pass http://webint; > > > proxy_redirect http://webint:9080/ /; > > > } > But when I change LOCATION from: > location /WebApp { >

Re: Nginx and Websphere

2015-05-29 Thread sampy
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, samp

Re: Nginx and Websphere

2015-05-29 Thread sampy
Francis Daly Wrote: --- > On Fri, May 29, 2015 at 02:01:00AM -0400, sampy wrote: > > Hi there, > > > Now it's near to work! > > Good news. > > > With this configuration: > > > > upstream webint { > > #ip_hash; > >

Re: Nginx and Websphere

2015-05-29 Thread Francis Daly
On Fri, May 29, 2015 at 02:01:00AM -0400, sampy wrote: Hi there, > Now it's near to work! Good news. > With this configuration: > > upstream webint { > #ip_hash; > server wasint-1.domain.com:9080; > server wasint-2.domain.com:9080; > } >

Re: Nginx and Websphere

2015-05-28 Thread sampy
Hi there! Now it's near to work! With this configuration: upstream webint { #ip_hash; server wasint-1.domain.com:9080; server wasint-2.domain.com:9080; } server { listen 80; server_name web.domain.com; locatio

Re: Nginx and Websphere

2015-05-28 Thread Payam Chychi
Why redirect instead of a proxy_pass? -- 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

Re: Nginx and Websphere

2015-05-28 Thread Francis Daly
On Thu, May 28, 2015 at 11:50:30AM -0400, sampy wrote: > Francis Daly Wrote: Hi there, > upstream webint { > ip_hash; > server wasint-1.carreras.sa; Just to confirm: no ":9080" on that one? It probably means that a second proxy_redirect will be needed; added belo

Re: Nginx and Websphere

2015-05-28 Thread sampy
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-

Re: Nginx and Websphere

2015-05-28 Thread Francis Daly
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 responses? curl -i http://web.domain.co

Re: Nginx and Websphere

2015-05-28 Thread sampy
Francis Daly Wrote: --- > On Thu, May 28, 2015 at 02:35:10AM -0400, sampy wrote: > > Francis Daly Wrote: > > Hi there, > > > > Could you show the response to > > > > > > curl -i http://web.domain.com/ > > > > > I just remove "proxy_set_heade

Re: Nginx and Websphere

2015-05-28 Thread Francis Daly
On Thu, May 28, 2015 at 02:35:10AM -0400, sampy wrote: > Francis Daly Wrote: Hi there, > > Could you show the response to > > > > curl -i http://web.domain.com/ > > > I just remove "proxy_set_header Host $host" > > And the result for curl: > > HTTP/1.1 302 Found > Location: http://webint:9

Re: Nginx and Websphere

2015-05-27 Thread sampy
Hi, Francis Daly Wrote: --- > On Wed, May 27, 2015 at 07:27:25AM -0400, sampy wrote: > > Hi there, > > > What does "doesn't work" mean? > > > > web browser don't show the web and appears the error "webint don't > exists > > in DNS", but query

Re: Nginx and Websphere

2015-05-27 Thread Francis Daly
On Wed, May 27, 2015 at 07:27:25AM -0400, sampy wrote: Hi there, > What does "doesn't work" mean? > > web browser don't show the web and appears the error "webint don't exists > in DNS", but query arrives to the balanced server You see "webint", but you include "proxy_set_header Host $host;" i

Re: Nginx and Websphere

2015-05-27 Thread sampy
Hi Francis, What does "doesn't work" mean? web browser don't show the web and appears the error "webint don't exists in DNS", but query arrives to the balanced server What response do you get? "webint don't exists in DNS" but as I know "webint" is only a variable or a name for the upstream W

Re: Nginx and Websphere

2015-05-26 Thread Francis Daly
On Tue, May 26, 2015 at 06:36:35AM -0400, sampy wrote: Hi there, > NGINX balancing over 2 servers using ip_hash. This servers runs Websphere > and in every Websphere runs several apps. > > Servers separately runs: > > wasint-1.domain.com:9080/WebApp > wasint-2 domain.com:9080/WebApp > > My con

Nginx and Websphere

2015-05-26 Thread sampy
Hi all! I'm new in NGINX but I have try everything with very bad results. My scenario is: NGINX balancing over 2 servers using ip_hash. This servers runs Websphere and in every Websphere runs several apps. Servers separately runs: wasint-1.domain.com:9080/WebApp wasint-2 domain.com:9080/WebApp