Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Well I need suggestion, I have server setup one box - nginx, php-fpm and other box with only php-fpm installed, working as load balance. I am using upstream function to set load balance. How to serve specific .php file to work with only first server box- php-fpm? Don't allow to load with load balance server.

share|improve this question

1 Answer 1

I just figured out by myself: my vhost configuration:

 location ^~/download.php {
fastcgi_pass   127.0.0.1:9000;
include fastcgi.conf;
 }

location ~ .*\.php?$ {
fastcgi_pass   phpupstream;
include fastcgi.conf;
fastcgi_index  index.php;
}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.