Mod_security - problem with access to IP address

I am trying to access my site using its IP address, it used to work fine before. But after I installed and configured mod_security and mod_security OWASP, Apache gave a 403 error.

Forbidden
You do not have permission to access this server.

What should I do so that I can access the website using the IP address in the browser?

+3


source to share


1 answer


The rule for blocking direct IP access is in the CRS file:

base_rules/modsecurity_crs_21_protocol_anomalies.conf

      



You need to get the rule id and disable it with SecRuleRemoveById

+1


source







All Articles