Welcome! Log In Create A New Profile

Advanced

Re: High CPU when upstream server down

Ryan Malayter
March 08, 2011 04:48PM
On Tue, Mar 8, 2011 at 2:35 PM, adamn <nginx-forum@nginx.us> wrote:

>            if (!-f $request_filename) {
>                proxy_pass http://dev.example.com;
>                break;
>            }


As they say, http://wiki.nginx.org/IfIsEvil
I've never seen proxy_pass work correcly inside an if block; the fact
that it works for you on 0.8.x seems to be happy coincidence.

Try creating a separate location (maybe regex based if necessary) and
put your proxy_pass statement in there.


--
RPM

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

High CPU when upstream server down

adamn March 08, 2011 03:10PM

Re: High CPU when upstream server down

Ryan Malayter March 08, 2011 03:20PM

Re: High CPU when upstream server down

adamn March 08, 2011 03:35PM

Re: High CPU when upstream server down

Ryan Malayter March 08, 2011 04:48PM

Re: High CPU when upstream server down

adamn March 08, 2011 05:02PM

Re: High CPU when upstream server down

adamn March 08, 2011 07:33PM

Re: High CPU when upstream server down

Ryan Malayter March 08, 2011 10:22PM

Re: High CPU when upstream server down

adamn March 08, 2011 10:33PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 64
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready