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

I came across this this topic and I'm wondering if there is an option/variable for the fastcgi_pass directive to define different unix domain sockets i.e.: fastcgi_pass unix:/var/run/php-fpm/www.sock; would be something like: fastcgi_pass unix:/var/run/php-fpm/$fastcgi_socket;?

share|improve this question
up vote 2 down vote accepted

There's no pre-existing variable, no. But you can use whatever socket you need to use, so long as the socket file exists, and php-fpm is configured to use it.

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.