Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

I just figured out by myself: my vhost configuration:

 location ^~/download.php {
include fastcgi.conf;

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

Your Answer


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.