LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-19-2009, 10:02 AM   #1
timnp
Member
 
Registered: Feb 2008
Location: London
Distribution: FC8, FC9, Centos 4, Centos 5, Knoppix
Posts: 52

Rep: Reputation: 17
Catch all HTTP errors in Apache with ErrorDocument


Hi,

I want to specify the same error page for all the different types of HTTP error. Maybe override it for certain ones.

What is the best way to do it with only a line or two that doesn't involve enumerating every possible error like this...

ErrorDocument 500 /othererror.html
ErrorDocument 404 /notfound.html
ErrorDocument 401 /othererror.html
ErrorDocument 403 /othererror.html

...and so on.

What is the directive to specify a default error page when no other error page is defined?

I tried a wildcard as the error code and I tried ommitting the error code altogether, it didn't like either.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache: http://localhost (work) http://ipaddress (not working) sarmad Linux - Newbie 7 02-05-2013 07:47 AM
http errors??? winchester169 Linux - Newbie 1 01-15-2005 03:25 AM
How do I catch errors with sshopen2? FatDog Programming 0 06-23-2004 02:49 PM
Apache 1.3.20 close connection on HTTP 1.1 400 500 errors dafri Linux - Software 4 01-14-2003 08:50 AM
401 ErrorDocument with Apache c0c0deuz Linux - General 3 11-17-2002 07:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration