You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-de@httpd.apache.org by Daniel Schulz <da...@dlsz.org> on 2007/01/08 15:29:17 UTC
Verständnisfrage zu NameVirtualHost
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 webmaster@domain.org
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 webmaster@domain.org
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 webmaster@domain.org
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 webmaster@domain.org
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 users-de-unsubscribe@httpd.apache.org
sonstige Anfragen an users-de-help@httpd.apache.org
--------------------------------------------------------------------------
Re: Verständnisfrage zu NameVirtualHost
Posted by Daniel Schulz <da...@dlsz.org>.
Lars Eilebrecht <la...@apache.org> schrieb:
> > irgendwie komme ich trotz Doku lesen nicht dahinter, wie ich
> > folgende Warnung vermeiden und trotzdem mehrere Subdomains haben
> > kann:
>
> Um die Warnung zu vermeiden müsstest Du noch die Anweisung
> "NameVirtualHost xxx.xxx.xxx.xxx:443" hinzufügen, allerdings
> funktioniert SSL nicht mit namensbasierten Vhosts, d.h. Du kannst
> keine unterschiedlichen SSL-Zertifikate verwenden.
Das ging flott, jetzt klappt alles. Herzlichen Dank für Eure Hilfe!
Daniel
--------------------------------------------------------------------------
Apache HTTP Server Mailing List "users-de"
unsubscribe-Anfragen an users-de-unsubscribe@httpd.apache.org
sonstige Anfragen an users-de-help@httpd.apache.org
--------------------------------------------------------------------------
Re: Verständnisfrage zu NameVirtualHost
Posted by Lars Eilebrecht <la...@apache.org>.
According to Daniel:
> irgendwie komme ich trotz Doku lesen nicht dahinter, wie ich folgende
> Warnung vermeiden und trotzdem mehrere Subdomains haben kann:
Um die Warnung zu vermeiden müsstest Du noch die Anweisung
"NameVirtualHost xxx.xxx.xxx.xxx:443" hinzufügen, allerdings funktioniert
SSL nicht mit namensbasierten Vhosts, d.h. Du kannst keine unterschiedlichen
SSL-Zertifikate verwenden.
ciao...
--
Lars Eilebrecht
lars@apache.org
--------------------------------------------------------------------------
Apache HTTP Server Mailing List "users-de"
unsubscribe-Anfragen an users-de-unsubscribe@httpd.apache.org
sonstige Anfragen an users-de-help@httpd.apache.org
--------------------------------------------------------------------------
Re: VerstÀndnisfrage zu NameVirtualHost
Posted by Rainer Sokoll <R....@intershop.de>.
On Mon, Jan 08, 2007 at 03:29:17PM +0100, Daniel Schulz wrote:
> NameVirtualHost xxx.xxx.xxx.xxx:80
Da fehlt ein NameVirtualHost xxx.xxx.xxx.xxx:443
> <VirtualHost xxx.xxx.xxx.xxx:443>
> ServerName webmail.domain.org
> <VirtualHost xxx.xxx.xxx.xxx:443>
> ServerName phpmyadmin.domain.org
Das geht nicht. Warum nicht, sollte sich irgendow in den Archiven dieser
Liste finden lassen :-)
Rainer
--------------------------------------------------------------------------
Apache HTTP Server Mailing List "users-de"
unsubscribe-Anfragen an users-de-unsubscribe@httpd.apache.org
sonstige Anfragen an users-de-help@httpd.apache.org
--------------------------------------------------------------------------