403 on CSS via Sym Link

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • henryrhenryr
    New Member
    • Jun 2007
    • 103

    403 on CSS via Sym Link

    Hi

    I have a css file stored outside the server root and a symbolic link to it in the server root. The result is a 403 (Forbidden) error from the server.

    EG:

    /var/www/html = where my site is
    /var/www/css = where my css is
    /var/www/css/test.css = my css file
    /var/www/html/css = symbolic link to /var/www/css

    Code:
    www.domain.com/css/test.css --> error 403
    I have included /var/www/css in PHP's "open_based ir" and I can access the files with PHP include(). I have also checked the permissions on the files - all 777.

    I can work around in PHP but it's a pain and I would like to get it working more efficiently.

    Does anyone know what could cause this 403 error and if possible how to fix it.

    Thanks!

    Henry
  • henryrhenryr
    New Member
    • Jun 2007
    • 103

    #2
    Well it turns out it was permissions. I had uploaded a whole folder and this was causing problems. Making a new folder and copying the contents across solved the problem.

    Comment

    Working...