On Sep 24, 2013 5:40 AM, "Christoph Gröver" <gro...@sitepark.com> wrote: > > > Hello list, Hello Sorin, > > I tested several different Apaches (2.4.x and 2.2.x) and they never did > the wanted or expected. > > If I configure more than one VHost only the first one is returned by > the server->server_hostname structure.> The one of the second vhost that is configured as a "ServerName" seems > to be impossible to determine? > > Is there any other way to find the hostname?
When you check, are you in the middle of a request that's mapped to the 2nd virtual host? In what phase do you inspect the value? If you define a logfile in your 2nd vhost, does it accumulate entries?