What you want to use is _default_ VirtualHost .
<VirtualHost _default_:80> DocumentRoot /www/default80 # ... </VirtualHost>
It is described here . Basically, if nothing else matches the request, the _default_ host will be used.
EDIT
This can also be written as:
<VirtualHost *> DocumentRoot /www/default # ... </VirtualHost>
Itβs important that this is the first VirtualHost in the configuration, since Apache will start matching them from top to bottom, choosing the one that works best based on ServerName and ServerAlias .
This post may also be of interest: Default Virtualhost for Apache
Qben
source share