Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am running a stock lighttpd installation with no configuration changes. Client sees a 403 forbidden error trying to access static images (even from an img tag on a static page). Nothing in the logs about this. Research has turned up a number of 403 solutions regarding lighttpd but all the info I found is about listing user dirs or unable to access server at all, which is not the issue I am experiencing. I can't find anything in config files that would disable image access. Is there something in the stock config that would do this? What relevant configs should I check/post?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

With some insight from Lighttpd fails with 403 - Forbidden with SELinux enabled I checked sebools.

getsebool -a

to list all sebools. In my case I noticed that httpd_read_user_content was off. Enabling this

setsebool httpd_read_user_content 1

solved the 403 issue.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.