March 08, 2012 12:55PM
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 the hostname.

Is this is bug or how to get the real hostname the user connect to ?
SubjectAuthorPosted

Possible bug in value of $server_name variable

KaimeiMarch 08, 2012 12:55PM

Re: Possible bug in value of $server_name variable

Francis DalyMarch 08, 2012 01:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 83
Record Number of Users: 5 on May 22, 2013
Record Number of Guests: 226 on June 13, 2013
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready