- Remove outdated documentation files (MVP plan, API docs, frontend plan) - Add deployment configuration (DEPLOY.md, apache-config) - Update AGENTS.md with build commands - Fix geography and tests API endpoints - Update Tests page with improved functionality - Update package.json and svelte.config.js
42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
<VirtualHost *:80>
|
|
ServerName clqms.example.com
|
|
ServerAdmin admin@example.com
|
|
|
|
DocumentRoot /var/www/html/clqms
|
|
|
|
<Directory /var/www/html/clqms>
|
|
Options -Indexes +FollowSymLinks
|
|
AllowOverride All
|
|
Require all granted
|
|
</Directory>
|
|
|
|
# Handle SPA routing - fallback to index.html
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine On
|
|
RewriteBase /
|
|
RewriteRule ^index\.html$ - [L]
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule . /index.html [L]
|
|
</IfModule>
|
|
|
|
# Enable gzip compression
|
|
<IfModule mod_deflate.c>
|
|
AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/json
|
|
</IfModule>
|
|
|
|
# Cache static assets
|
|
<IfModule mod_expires.c>
|
|
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"
|
|
</IfModule>
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/clqms_error.log
|
|
CustomLog ${APACHE_LOG_DIR}/clqms_access.log combined
|
|
</VirtualHost>
|