Seite 1 von 1

Apache+SSL Redirect?

Verfasst: 11.04.2008 08:52
von BennyProdo
Hallo,

ich habe folgendes Konzept:

http://domain.de >> Redirect to https://domain.de:8663 (Funktioniert)
https://domain.de >> Redirect to https://domain.de:8663 (Funktioniert)

http://domain.de:8663 >> Redirect to https://domain.de:8663 (Fehler)

ERROR: BAD REQUEST 400.

Wie man sieht möchte ich Port 80 auf den Port 8663 weiterleiten natürlich only SSL, das selbe auch wenn mit Port 80 auf SSL zugegriffen wird, aber mit dem Port 8663 bei normaler http:// Anfrage funktioniert das nicht bekomme da nur einen 400 Error, warum?

Folgendes habe ich mir zusammengebastelt:

Code: Alles auswählen

Listen 8663

NameVirtualHost IP:8663

<VirtualHost IP:8663>
ServerName domain.de
ServerAdmin root@server.de
DocumentRoot /dic/myhost/vhosts
#SSLEnable
#SSLCACertificatePath /dic/myhost/vhosts/

SSLEngine on
SSLCertificateFile "/dic/myhost/vhosts/ssl.pem"
#SSLVerifyClient 0
#SSLVerifyDepth 0


	<Directory /dic/myhost/vhosts>
	<IfModule mod_php5.c>
		php_admin_flag engine on
		php_admin_flag safe_mode off
		php_admin_value open_basedir "/dic/myhost/vhosts:/tmp"
	</IfModule>
	</Directory>
</VirtualHost>


<VirtualHost IP:8663>
ServerName domain.de
ServerAdmin root@server.de
DocumentRoot /dic/myhost/vhosts
Redirect permanent / https://domain.de:8663
SSLEngine off
</VirtualHost>

<VirtualHost IP:80>
ServerName domain.de
ServerAdmin root@server.de
DocumentRoot /dic/myhost/vhosts
#SSLEnable
#SSLCACertificatePath /dic/myhost/vhosts

SSLEngine on
SSLCertificateFile "/dic/myhost/vhosts/ssl.pem"
#SSLVerifyClient 0
#SSLVerifyDepth 0

Redirect permanent / https://domain.de:8663
</VirtualHost>

<VirtualHost IP:80>
ServerName domain.de
ServerAdmin root@server.de
DocumentRoot /dic/myhost/vhosts
Redirect permanent / https://domain.de:8663
SSLEngine off
</VirtualHost>
Also ich habe eig. nur das selbe wie mit dem Port 80 gemacht, aber warum funktioniert das nicht auf Port 8663?

(Alle Daten wurden zu meiner Sicherheit verändert)

Kann mir da jemand helfen?

Verfasst: 12.04.2008 13:32
von BennyProdo
kann mir da keiner helfen?