Virtualhost
Hallo zusammen,
würde gern einige subdomains erstellen.
Diese sind in KIS konfiguriert und sind auch schon seit Wochen aktiv udn
zeigen auf die neue IP von dem Server.
Jetzt habe ich eine mail.conf erstellt die sich im Verzeichnis
/etc/apache2/conf.d befindet und so aussieht:
#####
# 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>
Die Apache 000-default sieht so aus:
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/>
Die Subdomain geht jetzt auch nur, wenn ich die hauptdomain eingebe greift
er auch auf das Verzeichnis von der subdomain und der apache gibt noch diese
meldung aus:
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??
Vielen Dank
Markus
_________________________________________________________________
Die neue MSN Suche Toolbar mit Windows-Desktopsuche. Suchen Sie gleichzeitig
im Web, Ihren E-Mails und auf Ihrem PC! Jetzt neu! http://desktop.msn.de/
Jetzt gratis downloaden!
Reply to:
- References:
- Re: Apache2
- From: Torsten Flammiger <torsten@flammiger.org>