diff --git a/apache-config.conf b/apache-config.conf
index b0daebb..7cb0957 100644
--- a/apache-config.conf
+++ b/apache-config.conf
@@ -5,32 +5,11 @@
ServerName harheimertc.tsschulz.de
ServerAdmin admin@tsschulz.de
- DocumentRoot /var/www/harheimertc/dist
-
ErrorLog ${APACHE_LOG_DIR}/harheimertc-error.log
CustomLog ${APACHE_LOG_DIR}/harheimertc-access.log combined
- # SPA Fallback für Nuxt.js
-
- Options Indexes FollowSymLinks
- AllowOverride All
- Require all granted
-
- # Fallback für Client-Side Routing
- RewriteEngine On
- RewriteBase /
- RewriteRule ^index\.html$ - [L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule . /index.html [L]
-
-
- # API-Routes für Nuxt Server
+ # Proxy alle Anfragen an Nuxt Server (Port 3100)
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/
diff --git a/apache-ssl-config.conf b/apache-ssl-config.conf
index b846b7c..1cb3e24 100644
--- a/apache-ssl-config.conf
+++ b/apache-ssl-config.conf
@@ -5,8 +5,6 @@
ServerName harheimertc.tsschulz.de
ServerAdmin admin@tsschulz.de
- DocumentRoot /var/www/harheimertc/dist
-
ErrorLog ${APACHE_LOG_DIR}/harheimertc-ssl-error.log
CustomLog ${APACHE_LOG_DIR}/harheimertc-ssl-access.log combined
@@ -28,25 +26,10 @@
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Header always set Permissions-Policy "geolocation=(), microphone=(), camera=()"
- # SPA Fallback für Nuxt.js
-
- Options Indexes FollowSymLinks
- AllowOverride All
- Require all granted
-
- # Fallback für Client-Side Routing
- RewriteEngine On
- RewriteBase /
- RewriteRule ^index\.html$ - [L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule . /index.html [L]
-
-
- # API-Routes für Nuxt Server (falls Server-Side Rendering verwendet wird)
+ # Proxy alle Anfragen an Nuxt Server (Port 3100)
ProxyPreserveHost On
- ProxyPass /api/ http://localhost:3100/api/
- ProxyPassReverse /api/ http://localhost:3100/api/
+ ProxyPass / http://localhost:3100/
+ ProxyPassReverse / http://localhost:3100/
# HTTP zu HTTPS Redirect