Wrox Home  
Search P2P Archive for: Go

  Return to Index  

apache_server thread: Re: Configuring Error Document


Message #1 by ealikadic@y... on Mon, 9 Apr 2001 07:56:01
> Hello friends,

>                 Can any one throw some light on configuring 

> ErrorDocuments in apache server.

> 

> Thanx in advance.



From httpd.conf:

---------------------------------------------

#

# Customizable error response (Apache style)

#  these come in three flavors

#

#    1) plain text

#ErrorDocument 500 "The server made a boo boo.

#  n.b.  the single leading (") marks it as text, it does not get output

#

#    2) local redirects

#ErrorDocument 404 /missing.html

#  to redirect to local URL /missing.html

#ErrorDocument 404 /cgi-bin/missing_handler.pl

#  N.B.: You can redirect to a script or a document using server-side-

includes.

#

#    3) external redirects

#ErrorDocument 402 http://some.other_server.com/subscription_info.html

#  N.B.: Many of the environment variables associated with the original

#  request will *not* be available to such a script.

---------------------------------------------



i.e.



ErrorDocument $ERRNO $MSG



or



ErrorDocument $ERRNO $URL



where $URL can be relative or absolute, local or external

  Return to Index