You probably have the following directive in your httpd.conf:
Alias /error/ "/var/www/error/"
This just redirects all your error queries to /var/www/error (e.g. if you need www.example.com/error/README it would redirect me to one of the README in that director). Removing the alias should fix your problem.
If you are concerned about access to your other directories then I, as a complete newbie to apache, would recommend.
- Auditing your httpd.conf and removing any aliases that you don't need.
- Modifying your containers to have "Deny from all" and "AllowOverride None" in all of them.
- If you have selinux enabled, then remove the httpd security contexts from those directories.