Moin zusammen!
Versuche aktuell eine alte Contao-Installation 3.1 in einen Docker-Container zu verschieben. Leider historisch gewachsen und Update liegt nicht in meiner Hand…
Lief grundsätzlich soweit ganz gut und macht auch hinter Reverse Proxy erstmal keine Probleme – bis auf folgendes:
Beim Aufrufen der Static Files (/files, /assets und den jeweiligen Unterseiten) wird der Hostname immer in der Request URI inkludiert, anstatt direkt auf /files zuzugreifen. Bspw. beim Zugriff via dev.domain.tld wird folgende URL angefragt: https://dev.domain.tld/dev.domain.tl...n/js/script.js
Ebenfalls bei https://dev.domain.tld/dev.domain.tld/impressum.html und wenn man via www.domain.tld aufruft entsprechend https://www.domain.tld/www.domain.tl...n/js/script.js
Weiß jemand woran das liegen könnte? Die TL_ROOT wird richtig evaluiert und meine Konfigurationen sehen wie folgt aus:
PHP-Code:
<?php
#localconfig.php
### INSTALL SCRIPT START ###
$GLOBALS['TL_CONFIG']['licenseAccepted'] = true;
$GLOBALS['TL_CONFIG']['installPassword'] = 'hunter42';
$GLOBALS['TL_CONFIG']['encryptionKey'] = 'hunter42';
$GLOBALS['TL_CONFIG']['dbDriver'] = 'MySQLi';
$GLOBALS['TL_CONFIG']['dbHost'] = 'db';
$GLOBALS['TL_CONFIG']['dbUser'] = 'user';
$GLOBALS['TL_CONFIG']['dbPass'] = 'hunter42';
$GLOBALS['TL_CONFIG']['dbDatabase'] = 'database';
$GLOBALS['TL_CONFIG']['dbPconnect'] = false;
$GLOBALS['TL_CONFIG']['dbCharset'] = 'UTF8';
$GLOBALS['TL_CONFIG']['dbPort'] = 3306;
$GLOBALS['TL_CONFIG']['dbSocket'] = '';
$GLOBALS['TL_CONFIG']['adminEmail'] = 'info@domain.tld';
$GLOBALS['TL_CONFIG']['customSections'] = 'rst_image_main,rst_nav_footer,rst_nav_main';
$GLOBALS['TL_CONFIG']['installCount'] = 0;
$GLOBALS['TL_CONFIG']['exampleWebsite'] = 1383587789;
$GLOBALS['TL_CONFIG']['websiteTitle'] = 'Contao Dummy';
$GLOBALS['TL_CONFIG']['defaultUser'] = '';
$GLOBALS['TL_CONFIG']['defaultGroup'] = '';
$GLOBALS['TL_CONFIG']['repository_unsafe_catalog'] = false;
$GLOBALS['TL_CONFIG']['allowedTags'] = '<a><abbr><acronym><address><area><article><aside><audio><b><bdi><bdo><big><blockquote><br><base><button><canvas><caption><cite><code><col><colgroup><data><datalist><dataset><dd><del><dfn><div><dl><dt><em><fieldset><figcaption>
$GLOBALS['TL_CONFIG']['latestVersion'] = '4.7.4';
$GLOBALS['TL_CONFIG']['rewriteURL'] = true;
$GLOBALS['TL_CONFIG']['displayErrors'] = true;
$GLOBALS['TL_CONFIG']['inactiveModules'] = 'a:6:{i:0;s:8:"calendar";i:1;s:8:"comments";i:2;s:3:"faq";i:3;s:10:"newsletter";i:4;s:4:"news";i:5;s:25:"rocksolid-frontend-helper";}';
$GLOBALS['TL_CONFIG']['backupdb_zip'] = false;
$GLOBALS['TL_CONFIG']['backupdb_sendmail'] = false;
$GLOBALS['TL_CONFIG']['backupdb_attmail'] = false;
### INSTALL SCRIPT STOP ###
PHP-Code:
<?php
# pathconfig.php
// Relative path to the installation
return '';
Lesezeichen