Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
litespeed_wiki:cache:developer_guide:directives [2016/05/16 17:31] Rob Holda [CacheLookup] |
litespeed_wiki:cache:developer_guide:directives [2017/03/01 19:20] Kevin Fwu [Apache configuration directives] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Apache configuration directives ====== | ====== Apache configuration directives ====== | ||
- | LiteSpeed’s Apache-style configuration directives must be nested in ''<IfModule LiteSpeed>'' and ''</IfModule>'' tags. For example: | + | LiteSpeed’s Apache-style configuration directives must be nested in ''<IfModule LiteSpeed>'' and ''</IfModule>'' tags. This is to prevent any possible incompatibility issues. For example: |
<code> | <code> | ||
<IfModule LiteSpeed> | <IfModule LiteSpeed> | ||
CacheEnable public / | CacheEnable public / | ||
- | CacheRoot c:/cacheroot | + | CacheRoot /dev/shm/cacheroot |
CacheMaxExpire 604800 | CacheMaxExpire 604800 | ||
</IfModule> | </IfModule> | ||
Line 38: | Line 38: | ||
The ''CacheRoot'' directive defines the name of the directory on the disk to contain cache files. \\ | The ''CacheRoot'' directive defines the name of the directory on the disk to contain cache files. \\ | ||
<code> | <code> | ||
- | CacheRoot c:/cacheroot | + | CacheRoot /dev/shm/cacheroot |
</code> | </code> | ||
Line 73: | Line 73: | ||
<code> | <code> | ||
CacheLookup public off | CacheLookup public off | ||
- | </code> \\ | + | </code> |
And then turn it on at a per-site basis with the following directive: \\ | And then turn it on at a per-site basis with the following directive: \\ |