Browse Source
Add cache and header config to Apache example.
pull/649/head
Dominik George
8 years ago
No known key found for this signature in database
GPG Key ID: B79A3C16A0C4F296
1 changed files with
9 additions and
0 deletions
-
etc/apache2/conf-available/movim.conf
|
|
@ -1,3 +1,4 @@ |
|
|
|
ProxyPass /movim/ws/ ws://localhost:8080/ |
|
|
|
Alias /movim/ /usr/share/movim/ |
|
|
|
|
|
|
|
<Directory /usr/share/movim/> |
|
|
@ -5,3 +6,11 @@ Alias /movim/ /usr/share/movim/ |
|
|
|
Options +FollowSymLinks -Indexes |
|
|
|
AllowOverride FileInfo Options |
|
|
|
</Directory> |
|
|
|
|
|
|
|
<Location /movim/> |
|
|
|
Header set Access-Control-Allow-Origin "*" |
|
|
|
|
|
|
|
# Ensure static files are cached even on HTTPS |
|
|
|
ExpiresActive on |
|
|
|
ExpiresDefault "now plus 1 week" |
|
|
|
</Location> |