From 4777940eacd6b486a90eb396d697fde607bbf417 Mon Sep 17 00:00:00 2001 From: Camilla Schoeser Date: Wed, 10 Jun 2026 19:58:11 +0200 Subject: [PATCH] test chemin plus joli version 837 --- configmap.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/configmap.yml b/configmap.yml index 109b9a3..2d49950 100644 --- a/configmap.yml +++ b/configmap.yml @@ -10,27 +10,30 @@ data: root /var/www/html; - # Vue SPA + # ---------------- VUE SPA (IMPORTANT) location /VUEJS/ { alias /var/www/html/VUEJS/myapp/dist/; + index index.html; - try_files $uri $uri/ /VUEJS/myapp/dist/index.html; + + try_files $uri $uri/ /index.html; } - # assets Vite + # ---------------- ASSETS (Vite) location /VUEJS/assets/ { alias /var/www/html/VUEJS/myapp/dist/assets/; - access_log off; expires 1y; add_header Cache-Control "public"; + try_files $uri =404; } - # favicon + # ---------------- FAVICON location = /VUEJS/favicon.ico { alias /var/www/html/VUEJS/myapp/dist/favicon.ico; + access_log off; } - # STOP PHP fallback (important) + # ---------------- BLOQUE PHP (important pour éviter 500) location ~ \.php$ { return 404; }