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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > symbolic link does not work in 4.0.3

Reply
 
Thread Tools Display Modes
  #1  
Old 05-14-2009, 06:45 PM
fastproxy fastproxy is offline
Senior Member
 
Join Date: Nov 2007
Posts: 95
Default symbolic link does not work in 4.0.3

Hi,

I just upgraded to 4.0.3 and my symlink setup does not work.

What i do is linking 2 folder so that i can access same images from different domain.
for example: domain1.com/upload/images.jpg
can be access by: domain2.com/upload/images.jpg
without actually copy images to domain2 folder.

What i do i plesk: ( when in domain 2 folder)
ln -s /var/www/vhosts/domain1.com/httpdocs/upload upload

But now the images in domain2 does not work anymore.

Do you know how can make it work again?
Reply With Quote
  #2  
Old 05-15-2009, 07:20 AM
auser auser is offline
Senior Member
 
Join Date: Mar 2009
Posts: 119
something playing with vhost security settings:
Follow Symbolic Link
Restrained

e.g., for domain2,
if Follow Symbolic Link=Yes
with symlink:
ln -s /var/www/vhosts/domain1.com/httpdocs/upload upload

domain2.com/upload/images.jpg should work.

if Follow Symbolic Link=If Owner Match
then if symlnk
domain2/upload has same owner with domain1.com/httpdocs/upload,
domain2.com/upload/images.jpg should work too.
Reply With Quote
  #3  
Old 05-15-2009, 09:17 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Use "chown -h <user> <path>" to make the symbolic link the same ownership of the link target.
Reply With Quote
  #4  
Old 05-15-2009, 11:39 AM
fastproxy fastproxy is offline
Senior Member
 
Join Date: Nov 2007
Posts: 95
Quote:
Originally Posted by mistwang View Post
Use "chown -h <user> <path>" to make the symbolic link the same ownership of the link target.
This works.

Thanks
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 02:53 AM.



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