diff --git a/deploy/nginx.conf b/deploy/nginx.conf index 9978615..43653e5 100644 --- a/deploy/nginx.conf +++ b/deploy/nginx.conf @@ -194,9 +194,12 @@ server { root /var/www/parenthese/landing/dist; index index.html; - # SPA fallback + # Le site est fait de pages écrites à l'avance : une adresse inconnue répond 404 (les moteurs de recherche + # la retirent), et montre la page d'accueil plutôt que la page d'erreur de nginx + error_page 404 /index.html; + location / { - try_files $uri $uri/ /index.html; + try_files $uri $uri/ =404; add_header Cache-Control "no-cache, no-store, must-revalidate" always; add_header Pragma "no-cache" always; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;