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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > Apparent Error in handling of symlinks in homedir paths.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-18-2011, 12:07 PM
emptymind emptymind is offline
New Member
 
Join Date: Jul 2009
Posts: 3
Default Apparent Error in handling of symlinks in homedir paths.

I sent this to bug@litespeedtech.com but since I have received no response in over a week, I will post it here as well.

---


It appears that litespeed is caching the 'resolved' path for the homedir.

If I have the homedir for a site set to /home/site/htdocs, and /home/site/dev and /home/site/prod containing files for the site. Creating a sybolic link from /home/site/dev to /home/site/htdocs in order to load the files in 'dev' as the homedir. Now I want to switch to 'prod' as the website, so I remove the htdocs symlink, and make a new symlink form /home/site/prod to /home/site/htdocs. Litespeed still loads/serves the files from 'dev'.

Restarting litespeed solves the problem.

This behavior was experienced on a litespeed-std install (no caching), and an litespeed-ent (with caching disabled), if caching was enabled, I could see this behavior as a result of the caching, but neither of these servers have caching enabled.

---

Just to add additional info

The std version was: v4.0.20
The ent version was: v4.0.16

---

James Mackie
EZProvider Networks, Inc.
http://www.ezp.net
1.888.397.7853
Reply With Quote
  #2  
Old 05-18-2011, 02:03 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Thank you for the bug report.
It is as designed, for better performance, LiteSpeed follows symbolic links for document root directories while loading the configuration during LSWS startup, instead of doing it for each request.
It can be easily addressed with a graceful restart.
Reply With Quote
  #3  
Old 05-18-2011, 02:40 PM
emptymind emptymind is offline
New Member
 
Join Date: Jul 2009
Posts: 3
Quote:
Originally Posted by mistwang View Post
Thank you for the bug report.
It is as designed, for better performance, LiteSpeed follows symbolic links for document root directories while loading the configuration during LSWS startup, instead of doing it for each request.
It can be easily addressed with a graceful restart.
Not for clients on a shared environment who are using symlinks to manage their sites folders.

This is a common practice, and as litespeed is a 'drop-in-replacement' for apache, the apache style functionality should, at the very least, have an option to be enabled. In reality if 'follow symlinks' is enabled in the webserver configuration, symlinks SHOULD be followed, not cached and require a server restart to enable a change in them.

If you want the performance of not resolving symlinks, then dont use symlinks. Symlinks are used for a reason. If they are used they need to be referenced.
__________________
--
James Mackie
EZProvider Networks, Inc.
http://www.ezp.net
1.888.397.7853
Reply With Quote
  #4  
Old 05-20-2011, 02:45 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Please try 4.1.1 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 06:41 AM.



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