Host Europe und der SSL-Proxy
Hallo TL-Geimeinde,
einige Beiträge im alten Forum befassen sich ja schon mit der Frage, wie bestimmte Seiten mittels SSL verschlüsselt werden können. Hierzu gibt es vor allem dieses geniale Redirect-Modul: https://contao.org/erweiterungsliste...010009.de.html
Allerdings habe ich das Modul ums verrecken nicht mit dem SSL-Proxy von Host Europe zum Laufen bekommen. Bis ich mich an ein altes Shop-Projekt auf Basis von xt:Commerce erinnert habe, bei dem es exakt die gleichen Probleme (HTTP_X_FORWARDED_HOST) gab. In Anlehnung daran ein Tipp, wie es klappt (Version 2.7.2):
1. Öffne
system/libraries/Environment.php.
2. Finde:
return ($_SERVER['SSL_SESSION_ID'] || $_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1);
3. Ersetze durch:
return ($_SERVER['SSL_SESSION_ID'] || $_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1 || $_SERVER['HTTP_X_FORWARDED_HOST'] == "ssl.webpack.de");
Ist natürlich nicht updatesicher - funktioniert aber. Keine Ahnung ob das interessant ist, mir hat es jedenfalls den Hintern bei einem Projekt gerettet ;-)
Grüße
Olli
Liste der Anhänge anzeigen (Anzahl: 1)
Hallo.
Ich habe alle angebotenen Varianten zur Realisierung exakt nachvollzogen. Dabei erhalte ich, wie ich auch vorgehe, stets folgende Meldung:
Sie beigefügtes Bild!