|
 |
apache_server thread: Re: apache_server digest: March 06, 2001
Message #1 by Ajai Khattri <ajai@p...> on Thu, 08 Mar 2001 12:09:44 -0500
|
|
Apache Server digest wrote:
> From: <jspbrain@y...>
>
> Hello friends,
> Can any one throw some light on configuring
> ErrorDocuments in apache server.
Its pretty straight-forward.
You need to add ErrorDocument directives in your httpd.conf file.
An error document can be plain text or an HTML file, or a redirect to another
site.
You specify the error number that the particular directive responds to.
The numbers are based on HTTP error codes. The most common being 404 (document
doesn't exist).
Some examples:
ErrorDocument 500 "The server made a boo boo.
(The " indicates a plain text response with the text following it).
ErrorDocument 404 /missing.html
(Redirect to a local document on error 404)
ErrorDocument 404 /error.shtml
(Redirect to a server-parsed local document on error 404)
ErrorDocument 404 /cgi-bin/missing_handler.pl
(Redirect to a CGI script on error 404)
ErrorDocument 402 http://some.other_server.com/subscription_info.html
(Redirect to another URL when we get error 402)
Once you add these and restart the web server it should work.
BTW, I am using Apache v1.3.14.
--
Aj.
Message #2 by <jspbrain@y...> on Fri, 9 Mar 2001 09:40:22 +0530
|
|
Thank you sir for replying again.
Actually i tried doing that but was not successfull
I have integrated tomcat 3.2.1 with my apache 1.3.14
Can u please tell where does apache match the /missing.html context to.
i.e to the server root or the Document root we have mentioned and more over
in case of Multiple domains can we have different configuration for
different domains.
Thank you
Vikram Naik
----- Original Message -----
From: "Ajai Khattri" <ajai@p...>
To: "Apache Server" <apache_server@p...>
Sent: Thursday, March 08, 2001 10:39 PM
Subject: [apache_server] Re: apache_server digest: March 06, 2001
> Apache Server digest wrote:
>
> > From: <jspbrain@y...>
> >
> > Hello friends,
> > Can any one throw some light on configuring
> > ErrorDocuments in apache server.
>
> Its pretty straight-forward.
>
> You need to add ErrorDocument directives in your httpd.conf file.
> An error document can be plain text or an HTML file, or a redirect to
another
> site.
> You specify the error number that the particular directive responds to.
> The numbers are based on HTTP error codes. The most common being 404
(document
> doesn't exist).
>
> Some examples:
>
> ErrorDocument 500 "The server made a boo boo.
> (The " indicates a plain text response with the text following it).
>
> ErrorDocument 404 /missing.html
> (Redirect to a local document on error 404)
>
> ErrorDocument 404 /error.shtml
> (Redirect to a server-parsed local document on error 404)
>
> ErrorDocument 404 /cgi-bin/missing_handler.pl
> (Redirect to a CGI script on error 404)
>
> ErrorDocument 402 http://some.other_server.com/subscription_info.html
> (Redirect to another URL when we get error 402)
>
>
> Once you add these and restart the web server it should work.
>
> BTW, I am using Apache v1.3.14.
>
> --
> Aj.
|
|
 |