Hello, Thanks for your reply! I don't think it whould work for us.... we use ip based virtual hosting so a virtualhost directive looks like <VitualHost 1.2.3.4:80> What does the __default__ directive do anyways? Greetings, Geert
________________________________ From: Igor Cicimov [mailto:[email protected]] Sent: woensdag 16 september 2009 15:12 To: [email protected] Subject: Re: [us...@httpd] Re: how do I *define* a default virtual host What about defining the default VH by using the _default_ expression. Like this <VirtualHost _default_:80> ServerName ServerAlias . . . </VirtualHost> On Wed, Sep 16, 2009 at 7:26 PM, Jan G.B. <[email protected]> wrote: 2009/9/15 LuKreme <[email protected]> On 15-Sep-2009, at 09:34, Jan G.B. wrote: 2009/9/15 LuKreme <[email protected]> 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
