You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Chintan Kachhi <ch...@gmail.com> on 2009/07/06 16:57:07 UTC

[users@httpd] How to see/use the response when the apache server is down.

I have installed apache http server version 2.2 on my local machine. I am
trying to write an apache rewrite module for the case when the apache server
is down. When the server is down, I need to redirect to a custom error page.
Does anyone know how can I apply this condition. So for starters, how can I
know if the server is down? Is there a status code that is returned when the
server is down while I am trying to hit it, and if so, how do I see that
http status code that is returned?

Re: [users@httpd] How to see/use the response when the apache server is down.

Posted by Eric Covener <co...@gmail.com>.
On Mon, Jul 6, 2009 at 10:57 AM, Chintan Kachhi<ch...@gmail.com> wrote:
> I have installed apache http server version 2.2 on my local machine. I am
> trying to write an apache rewrite module for the case when the apache server
> is down. When the server is down, I need to redirect to a custom error page.
> Does anyone know how can I apply this condition. So for starters, how can I
> know if the server is down? Is there a status code that is returned when the
> server is down while I am trying to hit it, and if so, how do I see that
> http status code that is returned?
>

Can you elaborate?  Are you talking about a proxy scenario? Otherwise,
 If your webserver is "down" there's no HTTP status code to speak of
or chance to redirect.

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: How to see/use the response when the apache server is down.

Posted by Eric Covener <co...@gmail.com>.
On Thu, Jul 9, 2009 at 11:23 AM, Chintan Kachhi<ch...@gmail.com> wrote:
> Ok.. here's the thing:
>
> I am having a issue, where the following happens: I am using IBM http server
> as my front end server, and WebSphere as my application server.
>
> I am trying to configure httpserver config file (httpd.conf) to display a
> certain page when my application
> server is down - but that is not working. ( that is I have my http server
> running, but the actual app server is stopped). I tried setting the
> errorDocument directive within the httpd.conf file of the HTTP server to
> display some custom string text in case of 500, 501, 502 or 503 errors, but
> it does not show any of the error messages. Instead, when I try to hit a
> service on the app server, it shows something as follows:
>

Works for me, might want to make sure you have a recent WebSphere Plugin.

I changed the port plugin-cfg.xml to something not listening, and set
  ErrorDocument 500 "whoops.

I got the custom error response.  This won't work if the AppServer is
up/listening and return it's own error response.


-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: How to see/use the response when the apache server is down.

Posted by Chintan Kachhi <ch...@gmail.com>.
Does that mean there is no way to do this? Maybe using rewrite module which
looks for the response and redirects it to a custom error page based on the
response? I think I came across a post where you mentioned something about
using modules look ahead feature. Is that possible?



On Fri, Jul 10, 2009 at 11:46 AM, Eric Covener <co...@gmail.com> wrote:

> On Fri, Jul 10, 2009 at 12:39 PM, Chintan Kachhi<ch...@gmail.com>
> wrote:
> > Thanks for the response... I looked through my httpd.conf file and found
> > that the WebSpherePluginConfig was pointing to the wrong plugin directory
> (
> > the person who had originally installed WAS had forgotten to update the
> file
> > to point it to the right directory). I regenerated and propagated the
> > plugin, and now it shows the correct error page, when the app server is
> > down. Now I get back to my main problem which I originally had... So now,
> my
> > IBM HTTP Server is running, my WebSphere application server is running,
> but
> > I take down one of the services in the app server. When I try to hit the
> > service from the url, it does not return my custom error message...
> instead
> > returns something like:
> >
> >
> > SRVE0255E: A WebGroup/Virtual Host to handle /service1 has not been
> defined.
> >
> > SRVE0255E: A WebGroup/Virtual Host to handle localhost:80 has not been
> > defined.
> >
> > IBM WebSphere Application Server
> >
> > ( where service1 is the service that I take down.)
> >
> > I looked at the http status codes returned through the live http headers
> and
> > it seems like it returns 404 Not Found...
> >
> > But then I am not sure why it is not redirecting it to my custom error
> page,
> > because I already have an errordocument directive for 404 error in my
> > httpd.conf file.
>
> You can't override the error response when it's generated by the
> application server (as opposed to generated by the websphere plugin)
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> 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-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Re: How to see/use the response when the apache server is down.

Posted by Eric Covener <co...@gmail.com>.
On Fri, Jul 10, 2009 at 12:39 PM, Chintan Kachhi<ch...@gmail.com> wrote:
> Thanks for the response... I looked through my httpd.conf file and found
> that the WebSpherePluginConfig was pointing to the wrong plugin directory (
> the person who had originally installed WAS had forgotten to update the file
> to point it to the right directory). I regenerated and propagated the
> plugin, and now it shows the correct error page, when the app server is
> down. Now I get back to my main problem which I originally had... So now, my
> IBM HTTP Server is running, my WebSphere application server is running, but
> I take down one of the services in the app server. When I try to hit the
> service from the url, it does not return my custom error message... instead
> returns something like:
>
>
> SRVE0255E: A WebGroup/Virtual Host to handle /service1 has not been defined.
>
> SRVE0255E: A WebGroup/Virtual Host to handle localhost:80 has not been
> defined.
>
> IBM WebSphere Application Server
>
> ( where service1 is the service that I take down.)
>
> I looked at the http status codes returned through the live http headers and
> it seems like it returns 404 Not Found...
>
> But then I am not sure why it is not redirecting it to my custom error page,
> because I already have an errordocument directive for 404 error in my
> httpd.conf file.

You can't override the error response when it's generated by the
application server (as opposed to generated by the websphere plugin)

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: How to see/use the response when the apache server is down.

Posted by Chintan Kachhi <ch...@gmail.com>.
Thanks for the response... I looked through my httpd.conf file and found
that the WebSpherePluginConfig was pointing to the wrong plugin directory (
the person who had originally installed WAS had forgotten to update the file
to point it to the right directory). I regenerated and propagated the
plugin, and now it shows the correct error page, when the app server is
down. Now I get back to my main problem which I originally had... So now, my
IBM HTTP Server is running, my WebSphere application server is running, but
I take down one of the services in the app server. When I try to hit the
service from the url, it does not return my custom error message... instead
returns something like:


SRVE0255E: A WebGroup/Virtual Host to handle /service1 has not been defined.

SRVE0255E: A WebGroup/Virtual Host to handle localhost:80 has not been
defined.

IBM WebSphere Application Server

( where service1 is the service that I take down.)

I looked at the http status codes returned through the live http headers and
it seems like it returns 404 Not Found...

But then I am not sure why it is not redirecting it to my custom error page,
because I already have an errordocument directive for 404 error in my
httpd.conf file.

  When I do something like:   http://localhost/chintan.html, it  shows the
custom error page for 404 that I defined.. ( since such a page does not
exist.), but
 when I do something like: http://localhost/myservice, where my service is a
service on the app server that I have taken down, it shows the above message
instead of my custom error page.

Not sure why it does this.


On Thu, Jul 9, 2009 at 3:54 PM, Eric Covener <co...@gmail.com> wrote:

> On Thu, Jul 9, 2009 at 3:48 PM, Chintan Kachhi<ch...@gmail.com>
> wrote:
> > [To Dan Poirier] I need to go to Websphere to hit the service and that
> > requires the port 9080, hence I do that... but this should work and
> return
> > the error message I think since the http server is linked to the
> Websphere
> > through the plugin...  someone correct me if I am wrong.
>
> It's only linked when you ask the WebServer for a page, and it fetches
> it from the AppServer. If you ask the AppServer (port 9080) the
> webserver isn't involved.
>
> The message you pasted is generated by the browser when it can't
> connect to port 9080, where your AppServer is normally listening.
>
> >
> > As for changing the port plugin-cfg.xml to something not listening, I am
> not
> > sure how to do that. Do you change something in the plugin.xml file, or
> > within the Websphere admin console?
>
> I did that to illustrate the behavior when the WebSphere Plugin can't
> connect to the AppServer. You don't want to change the port.
>
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> 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-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Re: How to see/use the response when the apache server is down.

Posted by Eric Covener <co...@gmail.com>.
On Thu, Jul 9, 2009 at 3:48 PM, Chintan Kachhi<ch...@gmail.com> wrote:
> [To Dan Poirier] I need to go to Websphere to hit the service and that
> requires the port 9080, hence I do that... but this should work and return
> the error message I think since the http server is linked to the Websphere
> through the plugin...  someone correct me if I am wrong.

It's only linked when you ask the WebServer for a page, and it fetches
it from the AppServer. If you ask the AppServer (port 9080) the
webserver isn't involved.

The message you pasted is generated by the browser when it can't
connect to port 9080, where your AppServer is normally listening.

>
> As for changing the port plugin-cfg.xml to something not listening, I am not
> sure how to do that. Do you change something in the plugin.xml file, or
> within the Websphere admin console?

I did that to illustrate the behavior when the WebSphere Plugin can't
connect to the AppServer. You don't want to change the port.


-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: How to see/use the response when the apache server is down.

Posted by Chintan Kachhi <ch...@gmail.com>.
[To Dan Poirier] I need to go to Websphere to hit the service and that
requires the port 9080, hence I do that... but this should work and return
the error message I think since the http server is linked to the Websphere
through the plugin...  someone correct me if I am wrong.

As for changing the port plugin-cfg.xml to something not listening, I am not
sure how to do that. Do you change something in the plugin.xml file, or
within the Websphere admin console?



On Thu, Jul 9, 2009 at 11:27 AM, Dan Poirier <po...@pobox.com> wrote:

> Chintan Kachhi <ch...@gmail.com> writes:
>
> > I am having a issue, where the following happens: I am using IBM http
> server as
> > my front end server, and WebSphere as my application server.
> >
> > I am trying to configure httpserver config file (httpd.conf) to display a
> > certain page when my application
> > server is down - but that is not working. ( that is I have my http server
> > running, but the actual app server is stopped). I tried setting the
> > errorDocument directive within the httpd.conf file of the HTTP server to
> > display some custom string text in case of 500, 501, 502 or 503 errors,
> but it
> > does not show any of the error messages. Instead, when I try to hit a
> service
> > on the app server, it shows something as follows:
> >
> >
> > Failed to Connect
> >
> > Firefox can't establish a connection to the server at localhost:9080.
> >
> >
>
> Port 9080 is usually WebSphere.  It sounds like you're going straight to
> WebSphere and not through IHS, so IHS isn't even involved.  Try going to
> http://localhost instead of http://localhost:9080
>
>
> --
> Dan Poirier <po...@pobox.com>
>
>
> ---------------------------------------------------------------------
> 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-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

[users@httpd] Re: How to see/use the response when the apache server is down.

Posted by Dan Poirier <po...@pobox.com>.
Chintan Kachhi <ch...@gmail.com> writes:

> I am having a issue, where the following happens: I am using IBM http server as
> my front end server, and WebSphere as my application server.
>
> I am trying to configure httpserver config file (httpd.conf) to display a
> certain page when my application
> server is down - but that is not working. ( that is I have my http server
> running, but the actual app server is stopped). I tried setting the
> errorDocument directive within the httpd.conf file of the HTTP server to
> display some custom string text in case of 500, 501, 502 or 503 errors, but it
> does not show any of the error messages. Instead, when I try to hit a service
> on the app server, it shows something as follows:
>
>
> Failed to Connect         
>
> Firefox can't establish a connection to the server at localhost:9080.  
>        
>

Port 9080 is usually WebSphere.  It sounds like you're going straight to
WebSphere and not through IHS, so IHS isn't even involved.  Try going to
http://localhost instead of http://localhost:9080


-- 
Dan Poirier <po...@pobox.com>


---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: How to see/use the response when the apache server is down.

Posted by Chintan Kachhi <ch...@gmail.com>.
Ok.. here's the thing:

I am having a issue, where the following happens: I am using IBM http server
as my front end server, and WebSphere as my application server.

I am trying to configure httpserver config file (httpd.conf) to display a
certain page when my application
server is down - but that is not working. ( that is I have my http server
running, but the actual app server is stopped). I tried setting the
errorDocument directive within the httpd.conf file of the HTTP server to
display some custom string text in case of 500, 501, 502 or 503 errors, but
it does not show any of the error messages. Instead, when I try to hit a
service on the app server, it shows something as follows:


Failed to Connect

Firefox can't establish a connection to the server at localhost:9080.


Though the site seems valid, the browser was unable to establish a
connection.

    * Could the site be temporarily unavailable? Try again later.
    * Are you unable to browse other sites?  Check the computer's network
connection.
    * Is your computer or network protected by a firewall or proxy?
Incorrect settings can interfere with Web browsing.


I want the custom error message that I put in the httpd.conf to show when a
user tries to hit the service on the appserver and the application server is
down.

There is a plugins.xml file that comes with the Websphere install that links
the app server and the http server, so I am expecting that the 500 or so
error should be getting communicated to the http server which should then be
able to show the  custom error message. I am not sure why that is not
happening?


On Mon, Jul 6, 2009 at 9:11 PM, Eric Covener <co...@gmail.com> wrote:

> On Mon, Jul 6, 2009 at 6:05 PM, Chintan Kachhi<ch...@gmail.com>
> wrote:
> > 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.
>
> Why would someone ever use the module if ErrorDocument is there?
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> 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-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Re: How to see/use the response when the apache server is down.

Posted by Eric Covener <co...@gmail.com>.
On Mon, Jul 6, 2009 at 6:05 PM, Chintan Kachhi<ch...@gmail.com> wrote:
> 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.

Why would someone ever use the module if ErrorDocument is there?

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: How to see/use the response when the apache server is down.

Posted by Chintan Kachhi <ch...@gmail.com>.
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 <aw...@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-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Re: How to see/use the response when the apache server is down.

Posted by André Warnier <aw...@ice-sa.com>.
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-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: How to see/use the response when the apache server is down.

Posted by Eric Covener <co...@gmail.com>.
On Mon, Jul 6, 2009 at 4:55 PM, Chintan Kachhi<ch...@gmail.com> 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

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: How to see/use the response when the apache server is down.

Posted by Chintan Kachhi <ch...@gmail.com>.
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?


On Mon, Jul 6, 2009 at 10:41 AM, hugh williams <hu...@soco.agilent.com>wrote:

> Assuming your definition of "down" is "not responding", there is no way for
> the server to respond with any kind of status code. Your customer's browsers
> will generally give them a message of some kind that it couldn't contact the
> server , however as the web administrator you have no visibility or control
> over that in any way - if your server is down, you won't get the requests.
>
> You could also investigate a server farm, or clustering, or load balancing,
> or any number of other ways to keep your web site visible, but they are all
> more complicated; there is no way to reply "I'm dead, sorry" from a single
> instance of Apache.
>
> hugh
>
> Chintan Kachhi wrote:
>
>> I have installed apache http server version 2.2 on my local machine. I am
>> trying to write an apache rewrite module for the case when the apache server
>> is down. When the server is down, I need to redirect to a custom error page.
>> Does anyone know how can I apply this condition. So for starters, how can I
>> know if the server is down? Is there a status code that is returned when the
>> server is down while I am trying to hit it, and if so, how do I see that
>> http status code that is returned?
>>
>
> --
> Hugh Williams                  "There are two things to aim for in life;
> hugh_williams@agilent.com       first, to get what you want; and after
> that,
> Agilent Technologies            to enjoy it.  Only the wisest of mankind
> Santa Rosa 3US                  achieve the second."
> (707)-577-4941                         - Logan Pearsall Smith, 1931
>
>
>
>
>
> ---------------------------------------------------------------------
> 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-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

[users@httpd] Re: How to see/use the response when the apache server is down.

Posted by hugh williams <hu...@soco.agilent.com>.
Assuming your definition of "down" is "not responding", there is no way 
for the server to respond with any kind of status code. Your customer's 
browsers will generally give them a message of some kind that it 
couldn't contact the server , however as the web administrator you have 
no visibility or control over that in any way - if your server is down, 
you won't get the requests.

You could also investigate a server farm, or clustering, or load 
balancing, or any number of other ways to keep your web site visible, 
but they are all more complicated; there is no way to reply "I'm dead, 
sorry" from a single instance of Apache.

hugh

Chintan Kachhi wrote:
> I have installed apache http server version 2.2 on my local machine. I 
> am trying to write an apache rewrite module for the case when the 
> apache server is down. When the server is down, I need to redirect to 
> a custom error page. Does anyone know how can I apply this condition. 
> So for starters, how can I know if the server is down? Is there a 
> status code that is returned when the server is down while I am trying 
> to hit it, and if so, how do I see that http status code that is 
> returned?

-- 
 Hugh Williams                  "There are two things to aim for in life;
 hugh_williams@agilent.com       first, to get what you want; and after that,
 Agilent Technologies            to enjoy it.  Only the wisest of mankind
 Santa Rosa 3US                  achieve the second."
 (707)-577-4941                         - Logan Pearsall Smith, 1931




---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org