OpenLiteSpeed LSCache Storage Directory with DirectAdmin

Meiji

New Member
#1
Hi,

I am trying to setup the cache storage directory for LSCache with OLS + DirectAdmin.

With LiteSpeed Enterprise, I can setup the cache storage dir in /usr/local/directadmin/data/templates/custom/cust_httpd.CUSTOM.2.pre:

Code:
<IfModule Litespeed>
CacheRoot lscache
</IfModule>
And doing that sets up the lscache directory under /home/$USER/lscache

With OpenLiteSpeed 1.7.1, doing above does not setup the /home/$USER/lscache directory.

How can I do that?
 

Meiji

New Member
#3
Hi Pong,

Thank you for replying. But the "storagepath" does not work as intended.

The linked doc says I can use $VH_ROOT, $VH_NAME, and $SERVER_ROOT variables, but it seems the variable $VH_NAME never works with "storagepath".

In both cases, the server stores cache in /usr/local/lsws/sitecache/ :

Code:
storagepath = $SERVER_ROOT/sitecache/$VH_NAME/

storagepath = $SERVER_ROOT/sitecache/
I have used many possible combinations with these three variables, each time $VH_NAME does not work.

What I am trying is to use a separate cache directory for each user, if that is not possible then for each domain. I hope you get the idea.
 
Top