Hallo,
irgendwie komme ich trotz Doku lesen nicht dahinter, wie ich folgende
Warnung vermeiden und trotzdem mehrere Subdomains haben kann:
--------------------------------------------
rechner:/etc/apache2# /etc/init.d/apache2 reload
Reloading web server config...[Mon Jan 08 15:18:42 2007] [warn] VirtualHost
xxx.xxx.xxx.xxx:443 overlaps with VirtualHost
xxx.xxx.xxx.xxx:443, the first has precedence, perhaps you need a
NameVirtualHost directive done.
rechner:/etc/apache2#
--------------------------------------------
Natürlich sind es beides die selben IP's. Meine config für diese Domain
sieht so aus:
--------------------------------------------
NameVirtualHost xxx.xxx.xxx.xxx:80
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerAdmin [EMAIL PROTECTED]
ServerName www.domain.org
ServerAlias domain.org
DocumentRoot /var/www/domain.org/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/domain.org/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</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/domain.org.error.log
LogLevel warn
CustomLog /var/log/apache2/domain.org.access.log combined
ServerSignature Off
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerName trainingscamp.domain.org
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/domain.org/trainingscamp
ErrorLog /var/log/apache2/trainingscamp.domain.org.error.log
CustomLog /var/log/apache2/trainingscamp.domain.org.access.log combined
</VirtualHost>
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerName webmail.domain.org
ServerAdmin [EMAIL PROTECTED]
Redirect / https://webmail.domain.org
</VirtualHost>
<VirtualHost xxx.xxx.xxx.xxx:443>
ServerName webmail.domain.org
DocumentRoot /var/www/webmail
SSLEngine On
SSLCertificateFile /etc/ssl/private/domain.org/webmail-domain-org.crt
SSLCertificateKeyFile /etc/ssl/private/domain.org/webmail-domain-org.key
ErrorLog /var/log/apache2/domain.org/domain.org.error.log
LogLevel error
CustomLog /var/log/apache2/domain.org/domain.org.access.log combined
</VirtualHost>
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerName phpmyadmin.domain.org
ServerAdmin [EMAIL PROTECTED]
Redirect / https://phpmyadmin.domain.org
DocumentRoot /var/www/phpmyadmin
ErrorLog /var/log/apache2/domain.org/domain.org.error.log
CustomLog /var/log/apache2/domain.org/domain.org.access.log combined
</VirtualHost>
<VirtualHost xxx.xxx.xxx.xxx:443>
ServerName phpmyadmin.domain.org
DocumentRoot /var/www/phpmyadmin
SSLEngine On
SSLCertificateFile /etc/ssl/private/domain.org/domain-org.crt
SSLCertificateKeyFile /etc/ssl/private/domain.org/domain-org.key
ErrorLog /var/log/apache2/domain.org/domain.org.error.log
LogLevel error
CustomLog /var/log/apache2/domain.org/domain.org.access.log combined
</VirtualHost>
--------------------------------------------
Ich verstehe nicht, wie ich das anders machen soll. Es kann doch nicht sein,
dass
man pro IP nur einen virtuellen Host eintragen kann? Wie löst Ihr das bzw was
mache
ich falsch?
Daniel
--------------------------------------------------------------------------
Apache HTTP Server Mailing List "users-de"
unsubscribe-Anfragen an [EMAIL PROTECTED]
sonstige Anfragen an [EMAIL PROTECTED]
--------------------------------------------------------------------------