Update Apache configuration to include fallback for SPA routes and add start script in package.json for Nuxt server.

This commit is contained in:
Torsten Schulz (local)
2025-10-21 01:05:11 +02:00
parent 87c71b1382
commit f33990cf46
3 changed files with 36 additions and 1 deletions

View File

@@ -25,10 +25,14 @@
RewriteRule . /index.html [L]
</Directory>
# API-Routes für Nuxt Server (falls Server-Side Rendering verwendet wird)
# API-Routes für Nuxt Server
ProxyPreserveHost On
ProxyPass /api/ http://localhost:3100/api/
ProxyPassReverse /api/ http://localhost:3100/api/
# Fallback für alle anderen Routen (SPA)
ProxyPass / http://localhost:3100/
ProxyPassReverse / http://localhost:3100/
# Redirect zu HTTPS (optional - kann später aktiviert werden)
# RewriteEngine On