httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Bligh <>
Subject Re: [users@httpd] Should name based virtual hosts work when the ServerName is an IP address?
Date Wed, 30 May 2012 18:59:45 GMT

--On 30 May 2012 14:41:53 +0200 Matus UHLAR - fantomas <> 

> I worked around this problem by defining fake name in NameVirtualHost and
> VirtualHost sections
># maps to
> NameVirtualHost
> NameVirtualHost
># is not resolvable from outside, so this host will ONLY get #
># default hosts - unspecified below
> <VirtualHost>
> ServerName
> </VirtualHost>
># This host will only process requests for
> <VirtualHost>
> ServerName
> </VirtualHost>

OK, so it is the <VirtualHost> that is fixing this (really) not
the ServerName line. I'm already doing the latter:

My problem is this is an automated install system and (broadly speaking)
I have no control over DNS.

Is there anything else I can do, like (e.g.) put the IP address as
a hex constant or something in <VirtualHost>? Or disable this rather
annoying feature?

Alex Bligh

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message