Saturday, April 16, 2011

Error 403 "Access Denied/Forbidden"

OS: Ubuntu 10.04 Lucid Lynx
Kernel: 2.6.32-30-generic-pae
Date: Few days back :P

Its been very very long,
 Anyways so I've a server in my balcony hosting my tiny website -- personal pages.
 The other day while my friend wanted to grab a pdf from there and hit an error "Error 403 "Access Denied/Forbidden".
 I was baffled as I could browse to the file on terminal. Apparently as it seems fix was quite easy as follow:
 Instead of trying to change httpd.conf or any other conf files for apache/apache2 this one is easier :)

 Considering directory structure: .../test/example.pdf and assuming you are in proper directories

 chmod +r in my case chmod +r example.pdf
 chmod +x in my case chmod +x test 

That should fix it :)