httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rich Bowen <rbo...@rcbowen.com>
Subject Re: [users@httpd] mixing dynamic and static virtual host definitions
Date Mon, 25 Oct 2010 18:22:18 GMT

On Oct 25, 2010, at 2:12 PM, Matt Price wrote:

> On 10-10-25 12:23 PM, Rich Bowen wrote:
>>
>> On Oct 25, 2010, at 12:07 PM, Matt Price wrote:
>> The solution is to put a ServerName (and possibly one or more  
>> ServerAlias directives) in the second VirtualHost.
>>
> thank you.  Things seem to work now -- though I confess to being a  
> bit surprised that ServerName * will work in this instance.  And it  
> would rbe nice to be able to specify a root location for requests  
> without a HOST header.  But that will doubtless come.  Thanks so much!


The reason that ServerName * doesn't work is that the value of  
ServerName is used to generate self-referential URLs, for example when  
an internal redirect is generated. With * you'd end up with http://*/ 
redir.html which isn't valid.

--
Rich Bowen
rbowen@rcbowen.com
http://drbacchus.com/




Mime
View raw message