[TriLUG] Apache and Virtual Hosts help

S. William Schulz swschulz at astrum.net
Fri Sep 9 12:42:11 EDT 2005


On Fri, Sep 09, 2005 at 12:32:58PM -0400, Brian Henning wrote:
> *From memory, so check it*
> 
> To get the behavior you described (at the expense of losing any 
> /desired/ default host function), you could define all your valid 
> virtual hosts, then create another virtual host which would come first 
> in httpd.conf such as:
> <VirtualHost *:80>
>   # No ServerName needed
>   DocumentRoot /some/empty/place/to/produce/404s
>   ErrorDocument 404 /path/to/custom/404/if/desired.html
> </VirtualHost>
> 

There is a _default_:80 option for setting a default response/host.

S




More information about the TriLUG mailing list