symbolic link does not work in 4.0.3

Discussion in 'General' started by fastproxy, May 15, 2009.

  1. fastproxy

    fastproxy New Member

    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?
  2. auser

    auser Super Moderator

    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.
  3. mistwang

    mistwang LiteSpeed Staff

    Use "chown -h <user> <path>" to make the symbolic link the same ownership of the link target.
  4. fastproxy

    fastproxy New Member

    This works.

    Thanks

Share This Page