Virutal Host error Drapper

Karl-Heinz Schulz karlheinz at khschulz.com
Sat Sep 2 20:49:18 BST 2006


My  "default" file looks like:

<VirtualHost www.domain1.com>
    ServerName www. domain1.com
    DocumentRoot /var/www/
    ServerAdmin webmaster@ domain1.com
    ErrorLog /var/log/apache2 domain1.com -error_log
    CustomLog /var/log/apache2/ domain1.com -access_log common
</VirtualHost>

<VirtualHost www. Domain2.com >
    ServerName www. www. Domain2.com
    DocumentRoot /var/www/kasimir
    ServerAdmin kasimir@ www. Domain2.com
    ErrorLog /var/log/apache2/ www. Domain2.com -error_log
    CustomLog /var/log/apache2/ www. Domain2.com -access_log common
</VirtualHost>


#<VirtualHost webmail. www. Domain1.com -lab>
#DocumentRoot /usr/share/squirrelmail
#ServerName webmail. www. Domain1.com
#</VirtualHost>


And I receive the following error:


the first has precedence, perhaps you need a NameVirtualHost directive

What did I miss?

TIA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060902/ee6a6311/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3660 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060902/ee6a6311/attachment.bin 


More information about the ubuntu-users mailing list