Fix: jamulix.de/ leitet wieder auf /landingpage/ weiter
Statt Symlink index.html → landingpage/index.html legen die Deploy-Skripte jetzt webroot/index.html (meta-refresh + location.replace) in den Webroot. README: Deploy-Schritte aktualisiert, Fehlerseiten-Konfig auf nginx (error_page) statt Apache korrigiert. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9c7e1ce4db
commit
c1c0061492
1 changed files with 40 additions and 16 deletions
|
|
@ -14,9 +14,11 @@ npm run build
|
|||
echo "Synchronisiere landingpage/ nach /var/www/html/landingpage/..."
|
||||
sudo rsync -av --delete landingpage/ /var/www/html/landingpage/
|
||||
|
||||
echo "Setze symbolischen Link: index.html → landingpage/index.html"
|
||||
echo "Setze Weiterleitung: index.html → /landingpage/"
|
||||
# rm zuerst: ein alter Symlink würde sonst landingpage/index.html überschreiben
|
||||
sudo rm -f /var/www/html/index.html
|
||||
sudo ln -s landingpage/index.html /var/www/html/index.html
|
||||
sudo cp webroot/index.html /var/www/html/index.html
|
||||
sudo chown www-data:www-data /var/www/html/index.html
|
||||
|
||||
echo "Kopiere Fehlerseiten: landingpage/<code>.html → <code>.html"
|
||||
for c in $ERROR_PAGES; do
|
||||
|
|
|
|||
Loading…
Reference in a new issue