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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > invalid format - syntax is requiring variable $VH_NAME

Reply
 
Thread Tools Display Modes
  #1  
Old 05-05-2007, 11:26 PM
zellster zellster is offline
Senior Member
 
Join Date: Sep 2004
Posts: 55
Default invalid format - syntax is requiring variable $VH_NAME

Environment:

LSWS Std 3.1.1
Ubuntu 4.1.1-13ubuntu5
Linux version 2.6.17-11-server

Easy bug: change spelling of "Response Bufferring" to "Response Buffering" for External App configuration.

Real bug: I am attempting to create a virtual host through the centralConfigLog template. I add an External App under "Web Server" and give it the name "AppServer". Clicking "Save" results in the following error message:

"*invalid format - AppServer, syntax is requiring variable $VH_NAME"

If I edit the XML file directly with "AppServer" and re-start LSWS, no errors are reported. What is the requirement with $VH_NAME?

Thanks.
Reply With Quote
  #2  
Old 05-06-2007, 10:21 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
The typo is fixed, thanks.

"$VH_NAME" is required in template configuration, it is to avoid multiple vhost level external application with the same name being defined when multiple vhosts has been created based on the template. Something may break when it happens.
Reply With Quote
  #3  
Old 05-06-2007, 04:12 PM
zellster zellster is offline
Senior Member
 
Join Date: Sep 2004
Posts: 55
Quote:
Originally Posted by mistwang View Post
The typo is fixed, thanks.

"$VH_NAME" is required in template configuration, it is to avoid multiple vhost level external application with the same name being defined when multiple vhosts has been created based on the template. Something may break when it happens.
I changed the External App name to "$VH_NAME-AppServer" and clicked save. The admin GUI accepted the change, and I performed a graceful restart. The server log then reports the following error:

2007-05-06 16:05:06.177 ERROR [config:vhost:foo.bar.com:context:/xml/] Can not find handler with type: 6, name: $VH_NAME-AppServer

Any idea what is going on?

Thanks.
Reply With Quote
  #4  
Old 05-06-2007, 05:00 PM
zellster zellster is offline
Senior Member
 
Join Date: Sep 2004
Posts: 55
I am guessing that the GUI is not expanding $VH_NAME to its value.
Reply With Quote
  #5  
Old 05-06-2007, 05:40 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
The server should expand the variable, forgot to do that for context handlers. Fix is in 3.1.1, you can change version number in the download link to get new release.
Reply With Quote
  #6  
Old 05-06-2007, 06:05 PM
zellster zellster is offline
Senior Member
 
Join Date: Sep 2004
Posts: 55
Quote:
Originally Posted by mistwang View Post
The server should expand the variable, forgot to do that for context handlers. Fix is in 3.1.1, you can change version number in the download link to get new release.
I downloaded 3.1.1 and completely removed the previous install. The fresh install was painless, and the External App named "$VH_NAME/AppServer" now works as expected. I did notice the following unrelated errors in the log:

Found 4 warning/error messages in the log: More
Time Level Message
2007-05-06 17:51:25.453 ERROR [config:vhost:Example:context:/docs/] missing <handler> in <context>
2007-05-06 17:51:25.453 ERROR [config:vhost:Example:context:/protected/] missing <handler> in <context>
2007-05-06 17:51:25.453 ERROR [config:vhost:Example:context:/blocked/] missing <handler> in <context>
2007-05-06 17:51:25.453 ERROR [config:vhost:Example:context:/cgi-bin/] missing <handler> in <context>

Are these anything to be concerned about?

Thanks.
Reply With Quote
  #7  
Old 05-06-2007, 07:05 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
That's because some contexts do not have a handler configuration.
Those errors has no harm, but anyway, package has been udpated to fix it.
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 06:44 AM.



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