Hallo Leute,
ich habe ein Problem und bin momentan ratlos, daher benötige ich Eure Hilfe.
Folgendes Szenario:
Apache-Server mit 2 V-Hosts einen für HTTP und einen für HTTPS
Der V-Host für HTTP hat eine ReDirect-Direktive mit Umleitung zum HTTPS Server. was auch funktioniert.
Nun ist mir leider aufgefallen das der HTTPS-Vhost trotzdem per HTTP zu erreichen ist statt nur per HTTPS.
Der direkte Aufruf http://web-srv03.domäne.de/otrs/index.pl funktioniert statt die Umleitung zu https.
Habe auch schon den http-vhost deaktiviert und nur den https-vhost gelassen, doch der Zugriff per http klappt immer noch.
Bin momentan ratlos und hoffe auf Ideen.
Hier mal kurz die Configs
Code:
NameVirtualHost web-srv03.domäne.de:80
#Listen 80
<VirtualHost web-srv03.domäne:80>
ServerAdmin root@localhost
ServerName web-srv03.domäne.de
DocumentRoot /var/www/
# ohne Fusszeilen
ServerSignature off
# Log-Files
CustomLog /var/log/apache2/access2.log combined
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel debug
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride ALL
Order allow,deny
allow from all
RedirectMatch 301 ^/(.*)$ https://web-srv03.domäne.de/otrs/index.pl
</Directory>
</VirtualHost>
und https
Code:
<VirtualHost web-srv03.domäne.de:443>
ServerAdmin root@localhost
ServerName web-srv03.domäne.de:443
DocumentRoot /usr/share/otrs/var/httpd/htdocs/
# ohne Fusszeilen
ServerSignature off
# Log-Files
CustomLog /var/log/apache2/otrs_ssl_access2.log combined
ErrorLog /var/log/apache2/otrs_ssl_error.log
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel debug
# SSL
SSLEngine on
SSLCACertificateFile /etc/apache2/ssl/ca.crt
SSLCertificateFile /etc/apache2/ssl/web-srv03.domäne.de.crt
SSLCertificateKeyFile /etc/apache2/ssl/web-srv03.domäne.de.key
ScriptAlias /otrs/ "/usr/share/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/usr/share/otrs/var/httpd/htdocs/"
Lesezeichen