Upstream setup with proxy and fastcgi?

TECK nginx-forum at nginx.us
Mon Apr 18 20:30:00 MSD 2011


In theory, all I have to do is this:

location / {
    proxy_pass http://proxy;
}

location ~ \.php$ {
    fastcgi_pass php;
    include fastcgi.conf;
}

However, I have a script that is processed like that on a normal single
server setup:
location /forum/ {
    try_files $uri $uri/ /forum/data.php$args;
}

How would I make the try_files work with the load balancer scheme?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,191346,192112#msg-192112




More information about the nginx mailing list