Browse Source
Added Apache cache to INSTALL.md
Added a template for getting a cache going with Apache2
pull/1218/head
Quinn64
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
25 additions and
1 deletions
-
INSTALL.md
|
|
@ -175,7 +175,31 @@ It is however **strongly recommended** to also setup a server side cache to prev |
|
|
|
|
|
|
|
#### On Apache |
|
|
|
|
|
|
|
_To be completed_ |
|
|
|
You will need Apache mods `cache_disk`, `expires`, and `headers`. You can enable them with the a2enmod command. Example: `a2enmod cache_disk` |
|
|
|
|
|
|
|
Then add this section to your Movim VirtualHost |
|
|
|
|
|
|
|
``` |
|
|
|
CacheQuickHandler on |
|
|
|
CacheLock on |
|
|
|
CacheLockPath /tmp/mod_cache-lock |
|
|
|
CacheLockMaxAge 5 |
|
|
|
CacheIgnoreHeaders Set-Cookie |
|
|
|
<Location /> |
|
|
|
CacheEnable disk |
|
|
|
CacheHeader on |
|
|
|
CacheDefaultExpire 6000 |
|
|
|
CacheMaxExpire 3600 |
|
|
|
CacheIgnoreNoLastMod On |
|
|
|
ExpiresActive on |
|
|
|
ExpiresDefault A3600 |
|
|
|
Header set Cache-Control public |
|
|
|
Header merge Cache-Control max-age=604800 |
|
|
|
FileETag All |
|
|
|
</Location> |
|
|
|
``` |
|
|
|
|
|
|
|
Afterwards, reload Apache. |
|
|
|
|
|
|
|
#### On nginx |
|
|
|
|
|
|
|