cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Can I use curl for Apache AJP/1.3 status check?

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Tue, 17 Apr 2007 11:03:16 -0500

On 4/17/07, Niels Heyvaert <nielsheyvaert_at_hotmail.com> wrote:
>
> Hi Ralph,
>
> I think you're making this complicated, but it depends a bit on the goal
> you're trying to achieve.
>
> If it's a matter of getting a correct sequence and only starting Apache
> when Tomcat is there, you could use another method.
>
> The way I did that was by checking if the file called "mod_jk.conf-auto"
> that Tomcat generated when starting. Once the file is there, you are sure
> you can start Apache.
>
> I'm not sure if this mechanism still stands with the latest versions of
> Tomcat, though.

My point was that, if you can get a page from the server, you know the
server is up. That'll work for *any* version of Tomcat (in fact, any
web server at all) and won't rely on the name and/or location of the
mod_jk.conf-auto file staying the same.

Ralph Mitchell
Received on 2007-04-17