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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > Symbolic links in httpd_config.xml

Reply
 
Thread Tools Display Modes
  #1  
Old 01-12-2008, 02:01 PM
zellster zellster is offline
Senior Member
 
Join Date: Sep 2004
Posts: 55
Default Symbolic links in httpd_config.xml

LSWS 3.3.3 Std, Linux 32-bit

Sample entry in httpd_config.xml:

<vhTemplate>
<name>EasyRailsWithSuEXEC</name>
<templateFile>$SERVER_ROOT/conf/templates/rails.xml</templateFile>
<listeners>Default</listeners>
<member>
<vhName>RubyVHost</vhName>
<vhDomain>127.0.0.1</vhDomain>
<vhAliases>foo.bar.com</vhAliases>
<vhRoot>/opt/my_app/current</vhRoot>
</member>
</vhTemplate>

/opt/my_app/current is a symbolic link, pointing to the actual release number (e.g. /opt/my_app/1.01). After some amount of time, including reloads, the <vhRoot/> text changes from the symbolic link to the actual directory name.

<vhTemplate>
<name>EasyRailsWithSuEXEC</name>
<templateFile>$SERVER_ROOT/conf/templates/rails.xml</templateFile>
<listeners>Default</listeners>
<member>
<vhName>RubyVHost</vhName>
<vhDomain>127.0.0.1</vhDomain>
<vhAliases>foo.bar.com</vhAliases>
<vhRoot>/opt/my_app/1.0.1</vhRoot>
</member>
</vhTemplate>

Changing the symbolic link to a new release no longer works as expected, due to the hard-coding of the last release in httpd_config.xml. Is the readlink-behavior necessary?
Reply With Quote
  #2  
Old 01-15-2008, 11:11 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
I did not find any where in the web console to replace a symbolic link with the real path.
Can you change it back to the link? Will it change back to the real path? How can you reproduce 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 04:46 AM.



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