Connecting Tech Pros Worldwide Forums | Help | Site Map

403 on CSS via Sym Link

Member
 
Join Date: Jun 2007
Posts: 101
#1: Nov 29 '08
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

Expand|Select|Wrap|Line Numbers
  1. www.domain.com/css/test.css --> error 403
I have included /var/www/css in PHP's "open_basedir" 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

Member
 
Join Date: Jun 2007
Posts: 101
#2: Nov 29 '08

re: 403 on CSS via Sym Link


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.
Reply