I tried that earlier but it defaults always to the first specified site - there must be something else going since I get the following error:
[EMAIL PROTECTED]:/etc/apache2/sites-available$ sudo /etc/init.d/apache2 restart * Forcing reload of apache 2.0 web server... [Sun Jan 07 13:43:01 2007] [warn] _default_ VirtualHost overlap on port 80, the first has precedence [Sun Jan 07 13:43:01 2007] [warn] VirtualHost wienernaschmarkt:80 overlaps with VirtualHost squirrelmail:0, the first has precedence, perhaps you need a NameVirtualHost directive [Sun Jan 07 13:43:03 2007] [warn] _default_ VirtualHost overlap on port 80, the first has precedence [Sun Jan 07 13:43:03 2007] [warn] VirtualHost wienernaschmarkt:80 overlaps with VirtualHost squirrelmail:0, the first has precedence, perhaps you need a NameVirtualHost directive .. --------default------------- NameVirtualHost *:80 <VirtualHost wienernaschmarkt:80> ServerAdmin [EMAIL PROTECTED] DocumentRoot /var/www/naschmarkt <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/naschmarkt/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all # Uncomment this directive is you want to see apache2's # default start page (in /apache2-default) when you go to / #RedirectMatch ^/$ /apache2-default/ </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost> <VirtualHost *:80> ServerName www.kasimir-schulz.com DocumentRoot /usr/share/gallery </VirtualHost> <VirtualHost *:80> ServerName www.khschulz-lab.com DocumentRoot /usr/share/gallery </VirtualHost> Alias /squirrelmail /usr/share/squirrelmail <Directory /usr/share/squirrelmail> php_flag register_globals off Options Indexes FollowSymLinks <IfModule mod_dir.c> DirectoryIndex index.php </IfModule> # access to configtest is limited by default to prevent information leak <Files configtest.php> order deny,allow deny from all allow from 127.0.0.1 </Files> </Directory> <VirtualHost squirrelmail> DocumentRoot /usr/share/squirrelmail ServerName webmail.khschulz-lab.com </VirtualHost> -----Original Message----- From: Sascha Kersken [mailto:[EMAIL PROTECTED] Sent: Sunday, January 07, 2007 1:19 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Virtual Host Issue Virtual Host IssueHi, the first virtual host doesn't have a ServerName. Regards Sascha
smime.p7s
Description: S/MIME cryptographic signature