Absent FastCGI process blocking static files?

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
“~ .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?

Hello!

On Sat, Oct 24, 2009 at 09:11:15PM -0700, jlist9 wrote:

as well?
No.

Maxim D.

On Sun, Oct 25, 2009 at 11:11 AM, jlist9 [email protected] 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;

}

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs