ServerName clqms.example.com
ServerAdmin admin@example.com
DocumentRoot /var/www/html/clqms
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
# Handle SPA routing - fallback to index.html
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
# Enable gzip compression
AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/json
# Cache static assets
ExpiresActive On
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ErrorLog ${APACHE_LOG_DIR}/clqms_error.log
CustomLog ${APACHE_LOG_DIR}/clqms_access.log combined