I am working on solving an issue within my Apache servers that will return a 403 Forbidden page when I attempt to go to a URL with sub-directories and the sub-directories do not exist.
"domain.com/etc/" Will return a 403 Forbidden error instead of a 404.
"domain.com/cd/" Will return a 403 instead of 404
"domain.com/xss/" Will return a 403 instead of a 404.
I've tried other URL/sub-directories like domain.com/bin/ returns 404. I've added this line to the HTACCESS file.
ErrorDocument 403 /error404.php
Which will make all 403 returns display a 404 page. However, this isn't good if the page is actually suppose to return a 403.
Anyone know how I can determine why these three sub-directories are returning with a 403 and not a 404. NOTE: I believe that these 3 are the only three I've been able to get to return a 403 Forbidden page on.
Is this an issue with the HTACCESS file, httpd.conf, Vhost.conf, or a php file? These directories DO NOT exist on the server. Any help would be much appreciated.