Apache 403 permission error

HI
We have installed a LAMP server on CentOS 6.6, we are using a public IP, If we try to access directly to the root of the website (http://myIP) there isn't any problem, you can see the default apache html file but If I try to get access to a subdirectory (http://myIP/myFolder) we got this error:

Forbidden
You don't have permission to access /myFolder on this server.
Apache/2.2.15 (CentOS) Server at 69.165.61.41 Port 80

Regards.
dimensionavAsked:
Who is Participating?
 
Seth SimmonsSr. Systems AdministratorCommented:
seems something like the server has no domain but just only an IP

do you have that system defined in /etc/hosts?
if not, add it and also see if things work with mod_security
0
 
Seth SimmonsSr. Systems AdministratorCommented:
look at the file system - does the account running the httpd process have rights to read myFolder?
0
 
dimensionavAuthor Commented:
Seems like the root user is the one who has all the permissions and which is runnig the httpd process
0
 
dimensionavAuthor Commented:
I just noticed that mod_security was enabled , If I disable it everything works perfectly, I have checked logs and the problem seems something like the server has no domain but just only an IP.

Do you know how to configure a rule to allow just a public IP instead of a domain on mod_security?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.