# Split-build include for utilisation-dept. # # Add ONCE inside of optical-dev.oliver.solutions.conf: # Include /opt/utilisation-dept/deploy/apache-utilisation-dept.conf # # This file is generated from .conf.tmpl by deploy.sh — __APP_PORT__ is # substituted with the chosen backend port. Do not edit the generated # .conf directly; edit the .tmpl. ProxyTimeout 300 TimeOut 300 # Backend API: only /utilisation-dept/api/ is proxied to the container. ProxyPass /utilisation-dept/api/ http://127.0.0.1:__APP_PORT__/api/ timeout=300 ProxyPassReverse /utilisation-dept/api/ http://127.0.0.1:__APP_PORT__/api/ # Frontend SPA: Apache serves the Vite build directly from disk. Alias /utilisation-dept /var/www/html/utilisation-dept Options -Indexes +FollowSymLinks AllowOverride None Require all granted # Long cache for hashed asset filenames (Vite emits content-hashed names). Header set Cache-Control "public, max-age=31536000, immutable" # No cache for index.html so deploys take effect immediately. Header set Cache-Control "no-cache, no-store, must-revalidate" # SPA fallback so deep links work. RewriteEngine On RewriteBase /utilisation-dept/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ index.html [L] # Force trailing slash so relative asset paths in index.html resolve. RedirectMatch ^/utilisation-dept$ /utilisation-dept/