View Full Version : is it possible to set $VH_NAME to environment variables??
nikss
08-15-2007, 05:55 PM
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
mistwang
08-15-2007, 06:09 PM
We can add that in next release. Are you using it in a vhost template?
felosi
08-15-2007, 11:46 PM
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
nikss
08-16-2007, 02:00 AM
We can add that in next release. Are you using it in a vhost template?
yes i tried in vhost and vhost template
both not works
obrie572
11-15-2007, 01:49 PM
Was this ever added to any new releases?
mistwang
11-15-2007, 02:03 PM
Yes, it was added.
obrie572
11-15-2007, 02:09 PM
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.
mistwang
11-15-2007, 02:37 PM
OK, find the bug. fix will be in 3.3 release.