Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-26-2003, 02:50 PM   #1
LQ Newbie
Registered: Mar 2003
Posts: 28

Rep: Reputation: 15
error document

i spse this is more of an apache question but here goes anyway.

just want to do a custom error page.

my .htaccess is located in my cgi-bin and looks like:

Options ExecCGI Includes
ErrorDocument 400
ErrorDocument 404

then if i go to a page that doesnt exist say

i get the regular error page rather than the one I would expect give the above errordocument specs.

Old 06-26-2003, 03:48 PM   #2
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Did you change the ErrorDocument in httpd.conf ? I think that might solve your issue.
Old 06-26-2003, 03:53 PM   #3
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
There should also be no line feed after the error number and you don't nee dthe full url - eg:
Options ExecCGI Includes
ErrorDocument 400 /errors/error.shtml
ErrorDocument 404 /errors/error.shtml


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how do i create a document, then a directory and save the document in it. jtdodge Linux - Newbie 9 06-15-2005 12:03 PM
FC3+nfs+KDE+openoffice(Can't modify a document and save it) RPC error antdevries Fedora 0 12-09-2004 08:17 AM
Convert openoffice document into ms document through cli? bruno buys Linux - Software 0 07-05-2004 10:59 AM
Apache: Document Not Found error voyciz Linux - Software 3 06-17-2004 05:51 AM
PHP - XML error: junk after document element at line... jimieee Programming 2 04-27-2004 12:16 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:38 PM.

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