I have a config file that handles wildcard subdomains like:
Then the variable $user contains the subdomain. The problem, is that I
also need to dynamically set the port that fastcgi passes PHP work too
since each user has their own PHP-FPM pool.
Is there a way to setup a hashmap of something like:
So that nginx can do some magic like:
set $user_port = map($user);
Posted at Nginx Forum: