This commit is contained in:
+9
-6
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user