Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

404 and Error Pages

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How do I change the content of my different "error pages" on my Apache server?
 
Use the
Code:
ErrorDocument
directive. Search your httpd.conf file for "ErrorDocument" and you will find the instructions for what you're looking for. ---------------------------------------------
They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.
 
Hi,

You can also just set up a one-liner in httpd.conf instead of pointing at a particular page. For example :

ErrorDocument 403 "You are not authorised !!

(don't put a trailing " - thats the syntax )

Or you can redirect somewhere :

ErrorDocument 403
See -->
Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top