Absent FastCGI process blocking static files?

Edho P Arief edhoprima at gmail.com
Sun Oct 25 19:07:33 MSK 2009

On Sun, Oct 25, 2009 at 11:11 AM, jlist9 <jlist9 at 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

More information about the nginx mailing list