vhost cache

Hedloff

Well-Known Member
#1
Hello,

Currently tested this in version 5.1.14.

Should vhost cache by using variable $vh_domain be working?
I cannot get this working.

My .conf file looked like this:

<IfModule LiteSpeed>
CacheRoot /lscache/$vh_domain
</IfModule>

I need to get addon/subdomain in their own cache folder.
 

Hedloff

Well-Known Member
#3
Yes, tried again and folder is created on new account in whm.

lscache folder and $vh_domain is created with permissions:
drwxr-x--- 3 nobody username 23 Mar 29 10:35 lscache/
drwxrws--- 2 nobody username 59 Mar 29 10:35 $vh_domain/

Not sure what I'm missing.....
 
L

Long

Guest
#8
Hi, Hedloff,

We confirmed this needs to be fixed.
Will do it as soon as we can.

Thanks
 

mistwang

LiteSpeed Staff
#9
For apache vhost, you can use $vh_name, it is the value of "ServerName" for that vhost.
$vh_domain value will be set to the same value as $vh_name in later build of 5.0.15.
 

Hedloff

Well-Known Member
#10
Well, just tested $vh_name but didn't work:
drwxrws--- 2 nobody username 59 Mar 29 10:35 $vh_domain/
drwxrws--- 2 nobody username 47 Apr 4 08:25 $vh_name/

Any eta for the fix?
 

Pong

Administrator
Staff member
#15
We tested in our lab and $vh_domain works fine.

$vh_domain value will be set to the same value as $vh_name anyway.
 

Hedloff

Well-Known Member
#17
I just tested on the same server as before and it worked now. Very strange...
I will go ahead and try all servers now.

[/usr/local/apache/conf/userdata]# cat wordpress.conf
<IfModule LiteSpeed>
CacheRoot lscache/$vh_domain
</IfModule>
 

Hedloff

Well-Known Member
#18
Most of the servers this worked fine now it seems.
Had trouble with one server, but reinstalled LiteSpeed version 5.0.15 and it started to work. Maybee a newer build or something that caused it....
 
Top