httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan G.B." <ro0ot.w...@googlemail.com>
Subject Re: [users@httpd] Re: how do I *define* a default virtual host
Date Wed, 16 Sep 2009 09:26:22 GMT
2009/9/15 LuKreme <kremels@kreme.com>

> On 15-Sep-2009, at 09:34, Jan G.B. wrote:
>
>> 2009/9/15 LuKreme <kremels@kreme.com>
>>
>>> I always put my default VirtualHost directly into the httpd.conf file,
>>> just
>>> before the Include line.
>>>
>>>
>  I'd say this way it's always unclear which is the default vhost. As you
>> have to dig through <config_file> instead of just issuing a `cat
>> /etc/apache2/sites-enabled/*` or just `ls`.
>>
>
> apachectl -S
>
>  As the example shows, there's also no easy way of disabling the vhost
>> on-the-fly  (ie: rm <symlink>). ;-)
>>
>
> I've never needed to disabled vhosts completely like that.
>
> However, I thought if you had NameVirtualHost set and had no Vhosts
> directives that was an error in configuration.
>
>
> Great, thanks. I never noticed the show switch '-S'. That's handy.

For disabling vhosts: it happens from time to time, when you administer
several sites with different mandants, white label stuff and alike....

Regards

Mime
View raw message