LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-26-2003, 02:50 PM   #1
weazy
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
http://www.site.com/errors/error.shtml
ErrorDocument 404
http://www.site.com/errors/error.shtml

then if i go to a page that doesnt exist say www.site.com/ks.htm

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

thanks.
 
Old 06-26-2003, 03:48 PM   #2
Crashed_Again
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
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

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


Reply


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


All times are GMT -5. The time now is 12:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration