How to block direct access to error pages in Apache httpd
Issue
I specified the following ErrorDocument:
ErrorDocument 500 /cgi-bin/errorpage.pl
However, I do not want to publish the error page. I would like to block the error page from direct access. Is it possible?
Environment
- Red Hat Enterprise Linux (RHEL)
- Red Hat JBoss Web Server
- Apache httpd 2.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
