-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.conf
More file actions
27 lines (25 loc) · 827 Bytes
/
server.conf
File metadata and controls
27 lines (25 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
NameVirtualHost *
# Development environment
<VirtualHost *:80>
DocumentRoot /var/www/devmerge/source
ServerName dev.devmerge.localhost
RewriteEngine On
RewriteCond %{REQUEST_URI} !^\/(styles|fonts|img|js|templates|(.+\.))(.*)
RewriteRule ^\/(.*)$ \/index.html [L]
RewriteLog "/var/log/apache2/rewrite_log"
RewriteLogLevel 3
ExpiresDefault A0
Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate"
Header set Pragma "no-cache"
</VirtualHost>
# Production environment
<VirtualHost *:80>
DocumentRoot /var/www/devmerge/publish
ServerName devmerge.localhost
RewriteEngine On
RewriteCond %{REQUEST_URI} !^\/(styles|fonts|img|js|(.+\.))(.*)
RewriteRule ^\/(.*)$ \/index.html [L]
<FilesMatch "^\/(styles|fonts|img|js)\/">
Header set Cache-Control "max-age=31556926"
</FilesMatch>
</VirtualHost>