Thursday, August 14, 2014

Apache forbidden message for files with underscore

In my automation server for my cisco equipament, after reboot, things stopped working with apache. After some time troubleshooting I found out that images with underscore in the file name would be forbidden while images wihout would be shown by apache. Really strange!

After trying everything:
- permissions
- directory http files
- etc

The problem was with SELINUX.
Executing echo 0 > /selinux/enforce

To be permanent, do the folling:
On /etc/sysconfig/selinux
change from:
SELINUX=enforcing

to :
SELINUX=disabled

Then, reboot again!
Good luck

No comments: