SYMLINKS does not work with 403 error

Discussion in 'General' started by zyzzza, Jan 19, 2025.

  1. zyzzza

    zyzzza Member

    Hi,
    Got this weird error after updates.
    The whole site works fine, but none of the symlinks work - getting 403 error , however i have
    "Options +FollowSymlinks" in Apache directlives , and no htaccess files ... permisions seems to be fine... apache configs seems to be populated ok...
    anything im missing ?
    robots.txt shown ok, rbobots2.txt - 403 error.
    upload_2025-1-19_16-42-4.png
    upload_2025-1-19_16-42-37.png
    upload_2025-1-19_16-43-49.png

    upload_2025-1-19_16-43-35.png
     
  2. zyzzza

    zyzzza Member

    Oh, ok, i found a solution :
    Options +SymlinksIfOwnerMatch
    should be replced with
    Options +FollowSymlinks

    but these are in default generated configs and i assume will be overwriten one day ?
    So basically 2 questions - how do i lock my settings , and why SymlinksIfOwnerMatch doesnt work, (seems all permisons are fine )
     
  3. remkoh

    remkoh Active Member HowtoForge Supporter

    Make sure the symlink's owner is the same as the owner of the file or folder it points to.
    That way Options +SymlinksIfOwnerMatch should work just fine.

    To change the symlink's owner:
    Code:
    chown -h <user>:<group> <symlink>
     
    ahrasis and till like this.
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    It should not be replaced with that. You just opened up a security hole in your system, so take care to undo that change.

    Like @remkoh mention, you must take care the symlink and the file it points to are owned by the user of the website.
     
  5. zyzzza

    zyzzza Member

    Yes, thanks, found out that group permissions where somehow altered , and that caused 403 ... Brought things back !
     
    ahrasis and till like this.

Share This Page