Map FastCGI Ports Dynamically

justin nginx-forum at
Thu Feb 23 19:23:38 UTC 2012


Thanks for the reply.

map $http_host $user_fastcgi_port {
default 9000; 9001; 9002;

server_name ~^(?<user>.+)\.my\.domain\.com$;


Getting 502 Bad Gateway. How can I debug and see what the value of
$user_fastcgi_port is being set as?

Posted at Nginx Forum:,222820,222906#msg-222906

More information about the nginx mailing list