Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I've got some webhealth checks that mainly see if the server is still alive. At the moment when each get is performed it spins up an instance of the web app on the server. I'd like to just have apache2.4 rely with a 200 for the specific IP addresses that are used to run the health check.

Is that possible? How do you configure Apache to return a 200 (without doing anything else) when the GET comes from a specific set of IP addresses?

Edit:

To clarify why the question has been asked. The particular monitoring I'm concerned about is simple the monitoring of whether the server is up or down. The more detailed monitoring is managed by other methods and wouldn't be set to return 200.

The reason is that each web health check get (and there are multiple from around the world all at the same time) starts up the application stack and so produces an associated overhead. I want to avoid that overhead for what is simply a "are you alive" test.

share|improve this question
    
What are you trying to check the health of? Apache the app or something else ? –  Iain Nov 30 '13 at 16:34
    
Just whether the server is operational. Not necessarily whether the app is running. I've got other monitoring for that. –  Simon Cast Dec 2 '13 at 11:21

1 Answer 1

Sure, that's possible. But that completely defeats the purpose of checking the health of the service...

RewriteCond %{REMOTE_HOST} 1.2.3.4
RewriteRule . /path/to/some/static/file.html
share|improve this answer
    
Ok thanks. I'll look into that. This particular check is whether the server is up or down as opposed to whether the app itself is working. –  Simon Cast Dec 2 '13 at 11:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.