What causes Apache 403 Forbidden errors?
▼
Apache returns 403 when access is denied by file permissions, .htaccess rules, Require directives, mod_security rules, or Options -Indexes on directories without an index file.
How do I check why Apache returned 403?
▼
Check the Apache error log (usually /var/log/apache2/error.log). It will show the specific reason: client denied by server configuration, file permissions, or mod_security rule match.
What is mod_security and how does it cause 403s?
▼
mod_security is a web application firewall module for Apache. It inspects requests against rule sets (like OWASP CRS) and returns 403 when a request matches a known attack pattern.