Upstream setup with proxy and fastcgi?
TECK
nginx-forum at nginx.us
Mon Apr 18 22:45:15 MSD 2011
Thanks Francis. My goal is to install Nginx only into load balancer.
I provided the graphical picture for sanity reasons, in case the text
model would be understood.
I will not use dual load balancers, like in the picture. At least not
for now.
Presuming that I want to add in the future more servers designated for
nginx load balancing, then I will add the proxy configuration.
What will happen then with my current php related configuration?
location / {
proxy_pass http://proxy;
}
location /forum/ {
try_files $uri $uri/ /forum/data.php$args;
}
location ~ \.php$ {
fastcgi_pass php;
include fastcgi.conf;
}
Can you give me a real example? Location [php urls] is not really clear
for me.
Thanks.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,191346,192148#msg-192148
More information about the nginx
mailing list