I'm trying to add another virtualhost to an existing list of hosts (/etc/apache2/sites-availible/default). Here is a partial copy of the current setting:
<VirtualHost *> (<-- currently working)
ServerAdmin cdv@nyenrode.nl
Servername nyenrodejazznight.nl
DocumentRoot /home/nrjazznight/html
<Directory "/home/nrjazznight/html">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *> (<-- added and not working)
ServerAdmin cdv@nyenrode.nl
ServerName ncvlustrum.nl
ServerAlias www.ncvlustrum.nl
DocumentRoot /home/lustrum/html
<Directory "/home/lustrum/html">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
It was my hope that it would work properly when I just copied the setting from an existing one and used it for a new one. This however, resulted in the problem that A. Internally the new website is redirected to the default website of Apache and B. ncvlustrum.nl is working externally, however www.ncvlustrum.nl gets redirected to the default page (same as A). The rest of the sites are all working (couple of 6 websites) with the settings looking just like the one I added. Did I miss something?
Thank you in advance!
Additional information:
ncv:/home/robbert# clear
ncv:/home/robbert# source /etc/apache2/envvars ; /usr/sbin/apache2 -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:* is a NameVirtualHost
default server ncv.campus.nyenrode.nl (/etc/apache2/sites-enabled/000-default:2)
port * namevhost ncv.campus.nyenrode.nl (/etc/apache2/sites-enabled/000-default:2)
port * namevhost nyenroderally.nl (/etc/apache2/sites-enabled/000-default:129)
port * namevhost hvtuinfeest.nl (/etc/apache2/sites-enabled/000-default:140)
port * namevhost nyenrodejazznight.nl (/etc/apache2/sites-enabled/000-default:151)
port * namevhost ncvlustrum.nl (/etc/apache2/sites-enabled/000-default:162)
port * namevhost nieuwecompagnievanverre.nl (/etc/apache2/sites-enabled/000-default:174)
port * namevhost checkout.nieuwecompagnievanverre.nl (/etc/apache2/sites-enabled/000-default:185)
port * namevhost rugby.nyenrode.nl (/etc/apache2/sites-enabled/000-default:196)
port * namevhost dezilverenrijder.nl (/etc/apache2/sites-enabled/000-default:207)
port * namevhost www.dezilverenrijder.nl (/etc/apache2/sites-enabled/000-default:218)
port * namevhost zilverenrijder.nl (/etc/apache2/sites-enabled/000-default:229)
port * namevhost www.zilverenrijder.nl (/etc/apache2/sites-enabled/000-default:240)
port * namevhost ondernemend.nyenrode.nl (/etc/apache2/sites-enabled/000-default:251)
port * namevhost ncv.campus.nyenrode.nl (/etc/apache2/sites-enabled/000-default.save:2)
port * namevhost www.nyenroderally.nl (/etc/apache2/sites-enabled/000-default.save:73)
port * namevhost ncv.campus.nyenrode.nl (/etc/apache2/sites-enabled/000-default.save.1:2)
port * namevhost www.nyenroderally.nl (/etc/apache2/sites-enabled/000-default.save.1:82)
port * namevhost www.hvtuinfeest.nl (/etc/apache2/sites-enabled/000-default.save.1:93)
port * namevhost www.nyenrodejazznight.nl (/etc/apache2/sites-enabled/000-default.save.1:104)
port * namevhost ncv.campus.nyenrode.nl (/etc/apache2/sites-enabled/000-default.save.2:2)
port * namevhost nyenroderally.nl (/etc/apache2/sites-enabled/000-default.save.2:129)
port * namevhost hvtuinfeest.nl (/etc/apache2/sites-enabled/000-default.save.2:140)
port * namevhost nyenrodejazznight.nl (/etc/apache2/sites-enabled/000-default.save.2:151)
port * namevhost ncvlustrum.nl (/etc/apache2/sites-enabled/000-default.save.2:162)
port * namevhost nieuwecompagnievanverre.nl (/etc/apache2/sites-enabled/000-default.save.2:174)
port * namevhost checkout.nieuwecompagnievanverre.nl (/etc/apache2/sites-enabled/000-default.save.2:185)
port * namevhost rugby.nyenrode.nl (/etc/apache2/sites-enabled/000-default.save.2:196)
port * namevhost dezilverenrijder.nl (/etc/apache2/sites-enabled/000-default.save.2:207)
port * namevhost www.dezilverenrijder.nl (/etc/apache2/sites-enabled/000-default.save.2:218)
port * namevhost zilverenrijder.nl (/etc/apache2/sites-enabled/000-default.save.2:229)
port * namevhost www.zilverenrijder.nl (/etc/apache2/sites-enabled/000-default.save.2:240)
port * namevhost ondernemend.nyenrode.nl (/etc/apache2/sites-enabled/000-default.save.2:251)
Syntax OK
ncv:/home/robbert# a2ensite ncvlustrum.nl
ERROR: Site ncvlustrum.nl does not exist!
ncv:/home/robbert# pico /etc/apache2/ports.conf
GNU nano 2.0.7 File: /etc/apache2/ports.conf
Listen 80
Listen 443