is it possible to set $VH_NAME to environment variables??

nikss

Active Member
#1
is it possible to set $VH_NAME to environment variables in LSAPI app ??

Environment:
VH_NAME=$VH_NAME

gives me in phpinfo only

_ENV["VH_NAME"] = $VH_NAME
_SERVER["VH_NAME"] = $VH_NAME

not substitutions
 

felosi

Well-Known Member
#3
I noticed when I first started messing with litespeed when i was setting it to port 80 as the listener, it would add all of the vhosts and ability to adjust them and everything but that is the same time I was having problems too with it being real slow.

But that would be great to get the vhosts in the setup. that would be one of the most important and useful features I think cause now you basically have to make settings for the entire server,

Is there anyway to like take my apache 2 vhost and add it to the setup in litespeed? I know I tried this once before but never could get it working.

I'm real excited to see this vhost feature be implemented in the future, doing what i do its usefulness would be priceless
 
#7
Yes, it was added.
Thanks for the reply. I've tried doing the following in Litespeed Web Server Standard v3.2.4:

TRAC_ENV=$VH_ROOT/trac/

However, $VH_ROOT doesn't seem to get replaced as Trac fails with the error message:

No such file or directory: '$VH_ROOT/VERSION'

Is this only available on enterprise or another version?

Thanks for the info.
 
Top