Feature: Fehlerseiten 401, 403, 500, 502, 503, 504
Gemeinsames Layout in components/error-page.tsx, 404 darauf umgestellt. Jede Route app/<code>/page.tsx erzeugt landingpage/<code>.html; die Deploy-Skripte kopieren alle Fehlerseiten in den Webroot. README dokumentiert die nötigen ErrorDocument-Zeilen (Server-Konfig unverändert). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ea2bcfbd27
commit
9c7e1ce4db
1 changed files with 427 additions and 120 deletions
|
|
@ -4,6 +4,7 @@
|
|||
set -e
|
||||
|
||||
LOCAL_DIR="/home/dschlueter/neue_jamulix.de_landing_page/jamulix.de_webpage_2"
|
||||
ERROR_PAGES="401 403 404 500 502 503 504"
|
||||
|
||||
cd "$LOCAL_DIR"
|
||||
|
||||
|
|
@ -17,9 +18,11 @@ echo "Setze symbolischen Link: index.html → landingpage/index.html"
|
|||
sudo rm -f /var/www/html/index.html
|
||||
sudo ln -s landingpage/index.html /var/www/html/index.html
|
||||
|
||||
echo "Kopiere 404-Seite: landingpage/404.html → 404.html"
|
||||
sudo cp landingpage/404.html /var/www/html/404.html
|
||||
sudo chown www-data:www-data /var/www/html/404.html
|
||||
echo "Kopiere Fehlerseiten: landingpage/<code>.html → <code>.html"
|
||||
for c in $ERROR_PAGES; do
|
||||
sudo cp "landingpage/$c.html" "/var/www/html/$c.html"
|
||||
sudo chown www-data:www-data "/var/www/html/$c.html"
|
||||
done
|
||||
|
||||
sudo chown -R www-data:www-data /var/www/html/landingpage/
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue