LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > is it possible to set $VH_NAME to environment variables??

Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2007, 04:55 PM
nikss nikss is offline
Member
 
Join Date: Aug 2007
Posts: 21
Default is it possible to set $VH_NAME to environment variables??

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
Reply With Quote
  #2  
Old 08-15-2007, 05:09 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
We can add that in next release. Are you using it in a vhost template?
Reply With Quote
  #3  
Old 08-15-2007, 10:46 PM
felosi felosi is offline
Senior Member
 
Join Date: Jun 2007
Posts: 249
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
Reply With Quote
  #4  
Old 08-16-2007, 01:00 AM
nikss nikss is offline
Member
 
Join Date: Aug 2007
Posts: 21
Quote:
Originally Posted by mistwang View Post
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
Reply With Quote
  #5  
Old 11-15-2007, 12:49 PM
obrie572 obrie572 is offline
New Member
 
Join Date: Nov 2007
Posts: 4
Was this ever added to any new releases?
Reply With Quote
  #6  
Old 11-15-2007, 01:03 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Yes, it was added.
Reply With Quote
  #7  
Old 11-15-2007, 01:09 PM
obrie572 obrie572 is offline
New Member
 
Join Date: Nov 2007
Posts: 4
Quote:
Originally Posted by mistwang View Post
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.
Reply With Quote
  #8  
Old 11-15-2007, 01:37 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
OK, find the bug. fix will be in 3.3 release.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:48 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.