mikrosaft
Member
Hallo Leute,
ich habe hier ein merkwürdiges Problem mit meinem apache.
Ich habe 3 Named-vhosts konfiguriert, einen davon mit SSL. Funktioniert auch Grundsätzlich.
Die Konfiguration ist wie folgt:
Die entsprechenden Verzeichnisse, Dateien und Zertifikate sind angelegt und da wo sie sein sollen, DNS ist eingerichtet und erst mal funktioniert auch alles. Auch /etc/sysconfig/apache2 sowie /etc/apache2/listen.conf sind konfiguriert.
Wenn ich nun allerdings im Browser https://test1.xxxxxx.com eingebe, dann lande ich auf der Seite https://sslhost.xxxxxx.com. Erwarten würde ich eigentlich eine Fehlermeldung.
Wo hakts?
Hat jemand eine Idee?
Gruss
ms
ich habe hier ein merkwürdiges Problem mit meinem apache.
Ich habe 3 Named-vhosts konfiguriert, einen davon mit SSL. Funktioniert auch Grundsätzlich.
Die Konfiguration ist wie folgt:
Code:
#/etc/apache2/vhosts.d/test1.conf
<VirtualHost *:80>
ServerAdmin webmaster@test1.xxxxxx.com
ServerName test1.xxxxxx.com
DocumentRoot /srv/www/vhosts/test1.xxxxxx.com
ErrorLog /var/log/apache2/test1.xxxxxx.com-error_log
CustomLog /var/log/apache2/test1.xxxxxx.com-access_log combined
HostnameLookups On
UseCanonicalName On
ServerSignature On
ScriptAlias /cgi-bin/ "/srv/www/vhosts/test1.xxxxxx.com/cgi-bin/"
<Directory "/srv/www/vhosts/test1.xxxxxx.com/cgi-bin">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
<IfModule mod_userdir.c>
UserDir public_html
Include /etc/apache2/mod_userdir.conf
</IfModule>
<Directory "/srv/www/vhosts/test1.xxxxxx.com">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Code:
#/etc/apache2/vhosts.d/test2.conf
<VirtualHost *:80>
ServerAdmin webmaster@test2.xxxxxx.com
ServerName test2.xxxxxx.com
DocumentRoot /srv/www/vhosts/test2.xxxxxx.com
ErrorLog /var/log/apache2/test2.xxxxxx.com-error_log
CustomLog /var/log/apache2/test2.xxxxxx.com-access_log combined
HostnameLookups On
UseCanonicalName On
ServerSignature On
ScriptAlias /cgi-bin/ "/srv/www/vhosts/test2.xxxxxx.com/cgi-bin/"
<Directory "/srv/www/vhosts/test2.xxxxxx.com/cgi-bin">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
<IfModule mod_userdir.c>
UserDir public_html
Include /etc/apache2/mod_userdir.conf
</IfModule>
<Directory "/srv/www/vhosts/test2.xxxxxx.com">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Code:
<VirtualHost *:443>
ServerAdmin webmaster@sslhost.xxxxxx.com
ServerName sslhost.xxxxxx.com:443
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/apache2/ssl.crt/server.crt
SSLCertificateKeyFile /etc/apache2/ssl.key/server.key
DocumentRoot /srv/www/vhosts/sslhost.xxxxxx.com
ErrorLog /var/log/apache2/sslhost.xxxxxx.com-error_log
CustomLog /var/log/apache2/sslhost.xxxxxx.com-access_log combined
HostnameLookups Off
UseCanonicalName Off
ServerSignature On
ScriptAlias /cgi-bin/ "/srv/www/vhosts/sslhost.xxxxxx.com/cgi-bin/"
<Directory "/srv/www/vhosts/sslhost.xxxxxx.com/cgi-bin">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
<IfModule mod_userdir.c>
UserDir public_html
Include /etc/apache2/mod_userdir.conf
</IfModule>
<Directory "/srv/www/vhosts/sslhost.xxxxxx.com">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
AuthType basic
AuthName "Restricted"
AuthUserFile /etc/apache2/htpasswd
</Directory>
</VirtualHost>
Die entsprechenden Verzeichnisse, Dateien und Zertifikate sind angelegt und da wo sie sein sollen, DNS ist eingerichtet und erst mal funktioniert auch alles. Auch /etc/sysconfig/apache2 sowie /etc/apache2/listen.conf sind konfiguriert.
Wenn ich nun allerdings im Browser https://test1.xxxxxx.com eingebe, dann lande ich auf der Seite https://sslhost.xxxxxx.com. Erwarten würde ich eigentlich eine Fehlermeldung.
Wo hakts?
Hat jemand eine Idee?
Gruss
ms