Map FastCGI Ports Dynamically

Volodymyr Kostyrko c.kworr at
Wed Feb 22 10:04:18 UTC 2012

justin wrote:
> Valentin,
> Yeah, but failing to put the pieces together. How would I use map to
> build a sort of dynamic table that stored username, port combos?

Maybe sticking to unix sockets would be easier? Unix sockets are 
addressed by socket file name in base system and have no port so you 
would connect to something like:

fastcgi_pass unix:/home/$user/www/.fastcgi.php.socket;


fastcgi_pass unix:/tmp/.fastcgi.$user.php.socket;

Unix sockets are also known as faster and secure way for managing local 

Sphinx of black quartz judge my vow.

More information about the nginx mailing list