Project

General

Profile

403 Forbidden

Added by about 16 years ago

Hey guys,

I'm using Centos-5.2, with Lighttpd version 1.7 and Mozilla Firefox. Not completely sure what configuration I'm using since I'm using Lighttpd for the first time. I've run into a problem though. I want to host dotproject on Lighttpd, but for some reason I can only host html files on my localhost. Any other loopback site simply gives a 403 Forbidden error. Any idea what's going on?


Replies (2)

RE: 403 Forbidden - Added by mvijfwinkel about 16 years ago

I had a similar problem:

After a Centos update I wansn't able to use virtual hosts anymore. The site in my default document root was still working fine.

It turned out to be an access restriction by SELinux. By using this command my directories were readable again for Lighttpd:

chcon -R -h -t httpd_sys_content_t /YOURDOCUMENTROOT

Hope it helps!

RE: 403 Forbidden - Added by about 16 years ago

Thanks!

Found the problem; lighttpd was dead but the pid file remains, which is apparently caused when lighttpd is unable to write to access or error logs. Searched online, and found a forum that gave the answer to that

http://www.howtoforge.com/forums/showthread.php?p=131470

So after changing the 'socket' in lighttpd.conf, everything works. Yay!

    (1-2/2)