würde gern mehrere Subdomains einrichten.
Jetzt habe ich eine mail.conf erstellt die sich im Verzeichnis
/etc/apache2/conf.d befindet und so aussieht:
Code: Select all
#####
# Webmail
#####
<VirtualHost XXX.XXX.XXX.XXX:80>
DocumentRoot /var/www/horde
Alias /horde /var/www/horde
ServerName webmailer
ServerAlias webmailer.*
UseCanonicalName Off
<Directory /var/www/horde>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off
php_admin_value open_basedir
"/var/www/horde:/usr/share/php:/tmp:/var/qmail/bin/."
php_admin_value include_path
"/var/www/horde:/usr/share/php:/tmp:/var/qmail/bin/."
</IfModule>
Options -All +Includes +ExecCGI +FollowSymLinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost> Code: Select all
NameVirtualHost XXX.XXX.XXX.XXX:80
<VirtualHost XXX.XXX.XXX.XXX:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/> Ebenso kommt diese Fehlermeldung beim Apachenreload:
Forcing reload of web server: Apache2[Sun Nov 13 17:30:31 2005] [warn]
VirtualHost XXX.XXX.XXX.XXX:80 overlaps with VirtualHost XXX.XXX.XXX.XXX:80,
the first has precedence, perhaps you need a NameVirtualHost directive
Steh ich jetzt auf dem Schlauch oder wo muss jetzt der Virtual Host hin und der NameVirtualHost??
Viele Grüße und Danke
Umbroboy