Thanks for the link...I have looked through it before, and I just tried what it says, and it works ( I can just put my custom message within the httpd.conf file against the ErrorDocument 404 directive, and it will display this message when the page cannot be found.).That's exactly the functionality that I want. But I was thinking if I could do it using the Apache rewrite module instead. My ultimate objective is to be able to write a rewrite module that would be able to be loaded by someone. And that module would do all of the above... that is be able to redirect a failing request ( based on the response as above) to a custom error page. All the person would then have to do is to load the module, which would have the rewrite engine turned on.. and boom, it would work.
On Mon, Jul 6, 2009 at 4:14 PM, André Warnier <a...@ice-sa.com> wrote: > Chintan Kachhi wrote: > >> Thanks for the replies... I guess that can't be done then, but after >> thinking a bit, I think that I am probably looking for the scenario where >> a >> service is down on a server, rather than the server itself. Let's assume >> that I get the following response when the service is down: HTTP/1.1 404 >> Not >> Found >> >> Is there a way with apache rewrite module to redirect the page based on >> this >> response? So for example, something as follows: If the response code is >> 404, >> then redirect to custommessage.html, where I put my custom error message >> in >> custommessage.html? >> >> http://httpd.apache.org/docs/2.2/mod/core.html#errordocument > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > " from the digest: users-digest-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > >