Virtual Host IssueHi, the first virtual host doesn't have a ServerName. Regards Sascha----- Original Message ----- From: Karl-Heinz Schulz
To: users@xxxxxxxxxxxxxxxx Sent: Sunday, January 07, 2007 7:11 PM Subject: Virtual Host IssueI try to enable virtual hosts but all my requests are forwarded to www.wienernaschmarkt.eu/
What do I keep overlooking? TIA NameVirtualHost *:80 <VirtualHost *> ServerAdmin webmaster@localhost DocumentRoot /var/www/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> 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 wienernaschmarkt:80> ServerName www.wienernaschmarkt.eu DocumentRoot /var/www/naschmarkt ServerAdmin webmaster@xxxxxxxxxxxxxxxxxxx </VirtualHost> <VirtualHost kasimir-schulz:80> ServerName www.kasimir-schulz.com DocumentRoot /usr/share/gallery </VirtualHost> <VirtualHost khschulz-lab: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 1.2.3.4> DocumentRoot /etc/squirrelmail ServerName webmail.khschulz-lab.com </VirtualHost> #Alias /gallery /usr/share/gallery <Directory /usr/share/gallery> Options FollowSymLinks AllowOverride Limit Options FileInfo </Directory> # some people prefer a simple URL like http://gallery.example.com <VirtualHost 1.2.3.5> DocumentRoot /usr/share/gallery ServerName gallery.kasimir-schulz.com</VirtualHost>
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx