Hvis jeg kører en httpd -S får jeg en liste over alle virtualhosts med beskeden SYNTAX OK. Apachectl configtest siger alt ok. Her følger en kopi af min Vhosts.conf:
NameVirtualHost 192.168.0.130:80
<VirtualHost 192.168.0.130:80>
ServerName
www.mikkelbrabrand.dk ServerAlias mikkelbrabrand.dk
DocumentRoot /var/www/html
<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost 192.168.0.130:80>
ServerName
www.brabrand.net ServerAlias brabrand.net
ServerAdmin mikkel@brabrand.net
DocumentRoot /var/www/brabrand.net/html
ServerSignature EMail
LogLevel warn
<Directory /var/www/brabrand.net/html>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost 192.168.0.130:80>
ServerName
www.elsoe.dk ServerAlias elsoe.dk
ServerAdmin mikkel@brabrand.net
DocumentRoot /var/www/elsoe.dk/html
ServerSignature EMail
LogLevel warn
<Directory /var/www/elsoe.dk/html>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost 192.168.0.130:80>
ServerName
www.skemalaegger.dk ServerAlias skemalaegger.dk
ServerAdmin mikkel@brabrand.net
DocumentRoot /var/www/skemalaegger.dk/html
ServerSignature EMail
LogLevel warn
<Directory /var/www/skemalaegger.dk/html>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost 192.168.0.130:80>
ServerName
www.tpmultibyg.dk ServerAlias tpmultibyg.dk
ServerAdmin maiken@tpmultibyg.dk
DocumentRoot /var/www/tpmultibyg.dk/html
ServerSignature EMail
LogLevel warn
<Directory /var/www/tpmultibyg.dk/html>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost 192.168.0.130:80>
ServerName
www.vestigo.dk ServerAlias vestigo.dk
ServerAdmin mn@vestigo.dk
DocumentRoot /var/www/vestigo.dk/html
ServerSignature EMail
LogLevel warn
<Directory /var/www/vestigo.dk/html>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost 192.168.0.130:80>
ServerName
www.1hjaelp.dk ServerAlias 1hjaelp.dk
ServerAdmin mikkel@1hjaelp.dk
DocumentRoot /var/www/1hjaelp.dk/html
ServerSignature EMail
LogLevel warn
<Directory /var/www/1hjaelp.dk/html>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Og her følger et uddrag fra error_log:
[Tue Feb 17 20:42:08 2004] [notice] caught SIGTERM, shutting down
[Tue Feb 17 20:42:11 2004] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/apache2-suexec)
[Tue Feb 17 20:42:11 2004] [notice] Digest: generating secret for digest authentication ...
[Tue Feb 17 20:42:11 2004] [notice] Digest: done
[Tue Feb 17 20:42:12 2004] [notice] Apache-AdvancedExtranetServer/2.0.47 (Mandrake Linux/6.3.92mdk) mod_perl/1.99_09 Perl/v5.8.1 mod_ssl/2.0.47 OpenSSL/0.9.7b PHP/4.3.2 configured -- resuming normal operations
[Tue Feb 17 21:38:30 2004] [error] [client 80.161.101.7] File does not exist: /var/www/html/rasmus
[Tue Feb 17 21:38:48 2004] [error] [client 80.161.101.7] File does not exist: /var/www/html/rasmus
[Tue Feb 17 21:39:09 2004] [error] [client 80.161.101.7] File does not exist: /var/www/html/rasmus
Håber du kan få mening ud af det.