Possible bug in value of $server_name variable
nginx-forum at nginx.us
Thu Mar 8 17:55:15 UTC 2012
I have "server_name *.domain.tld" in my config file and tried to get the
correct virtual host the user connected to with the help of a php script
but "$_SERVER['SERVER_NAME']" returned "*.domain.tld" instead of
"something.domain.tld" when I connect to it.
When I use ".domain.tld" instead of "*.domain.tld" I get "domain.tld" as
Is this is bug or how to get the real hostname the user connect to ?
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,223642,223642#msg-223642
More information about the nginx