Map FastCGI Ports Dynamically
justin
nginx-forum at nginx.us
Thu Feb 23 19:23:38 UTC 2012
Volodymyr,
Thanks for the reply.
map $http_host $user_fastcgi_port {
default 9000;
justin.my.domain.com 9001;
simon.my.domain.com 9002;
}
server_name ~^(?<user>.+)\.my\.domain\.com$;
fastcgi_pass php1.local.domain.com:$user_fastcgi_port;
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: http://forum.nginx.org/read.php?2,222820,222906#msg-222906
More information about the nginx
mailing list