Welcome! Log In Create A New Profile

Advanced

Re: Absent FastCGI process blocking static files?

October 25, 2009 12:16PM
On Sun, Oct 25, 2009 at 11:11 AM, jlist9 <jlist9@gmail.com> wrote:
> Hi, I have a server that's configured to talk to a Python fastcgi process,
> a PHP fastcgi process, and also load some static files from the html directory.
>
> I find that when the backend servers are up, nginx loads the static files fine.
> However, if the Python process is not running, nginx fails to load static files
> (browser times out.) However, if the PHP process is not running but the Python
> process is running, nginx loads static files fine. I'm assuming this has to
> do with the location expression, I'm using "/" for Python back-end and

every single requests then thrown to python backend

you probably need something like

location / {
root /some/where;
try_files $uri @pythonb;
}

location @pythonb {
proxy_pass somewhere;
....
}

> "~ \.php$" for PHP back-end. But the question is, is this the expected
> behavior? If a back-end process is down, should it affect all static files
> as well?
>
>



--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Subject Author Posted

Absent FastCGI process blocking static files?

jlist9 October 25, 2009 12:16AM

Re: Absent FastCGI process blocking static files?

Maxim Dounin October 25, 2009 06:12AM

Re: Absent FastCGI process blocking static files?

edogawaconan October 25, 2009 12:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 182
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready