I've got a Novell exercise I'm busy doing where I need to setup an apache2 site called www. digitalairlines. com and 2 virtual sites hr.digitalairlines.com and marketing.digitalairlines.com

I've installed apache and got the www. digitalairlines. com going - easy enough with a index.html under /srv/www/htdocs - this works fine.

I then create a hr.conf and marketing.conf file under /etc/apache2/vhosts.d

hr.conf
Code:
<VirtualHost *:80>
    ServerAdmin webmaster@hr.digitalairlines.com
    ServerName hr.digitalairlines.com
    DocumentRoot /srv/www/vhosts/hr
    ErrorLog /var/log/apache2/hr.digitalairlines.com-error_log
    CustomLog /var/log/apache2/hr.digitalairlines.com-access_log combined

    HostnameLookups Off
    UseCanonicalName Off
    ServerSignature On

    ScriptAlias /cgi-bin/ "/srv/www/vhosts/hr/cgi-bin/"

    <Directory "/srv/www/vhosts/hr/cgi-bin">
        AllowOverride None
        Options +ExecCGI -Includes
        Order allow,deny
        Allow from all
    </Directory>

    <IfModule mod_userdir.c>
        UserDir public_html
        Include /etc/apache2/mod_userdir.conf
    </IfModule>

   <Directory "/srv/www/vhosts/hr">
        Options Indexes FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all

    </Directory>

</VirtualHost>
If I now got to hr.digitalairlines.com and marketing.digitalairlines.com the correct index.html is displayed. However if I go to www. digitalairlines. com I see the marketing web page displayed. Any ideas as to why this is occurring?

My default-server.conf file:

Code:
DocumentRoot "/srv/www/htdocs"
<Directory "/srv/www/htdocs">
        Options None
        AllowOverride None
        Order allow,deny
        Allow from all
</Directory>

Alias /icons/ "/usr/share/apache2/icons/"

<Directory "/usr/share/apache2/icons">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
</Directory>

ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"
<Directory "/srv/www/cgi-bin">
        AllowOverride None
        Options +ExecCGI -Includes
        Order allow,deny
        Allow from all
</Directory>

<IfModule mod_userdir.c>
        UserDir public_html
        Include /etc/apache2/mod_userdir.conf
</IfModule>
Include /etc/apache2/conf.d/*.conf
Include /etc/apache2/conf.d/apache2-manual?conf