Hi

You could make some simple script opining file and returning 404 if it
exist like
<?
if(fopen($FileName, 'r')) {
  header("HTTP/1.0 404 Not Found");
  echo "error";
} else {echo "ok";}
?>

2009/10/1 Kelly Kane <kelly.k...@openx.org>:
> Hello,
>
>      We use HAProxy for our frontend content delivery where I work. We're
> looking for a method to have multiple processes be able to disable a
> webserver in haproxy temporarily so they can perform maintenance features.
> To this end using a "killfile" rather than a "healthfile" would be more
> useful to us, where 404=OK and 200=NOLB. This would allow us to easily write
> in locks to the file of various processes which want the webserver out of
> the mix to this file, and remove it if it's empty.
>
>   Is something like this feasible in the current HAProxy infrastructure? Is
> there a hack that anyone has thought up for doing this? I've googled around
> but I haven't come up with anything other than http-check disable-on-404 and
> httpchk. We're running HAProxy 1.3.18 on pretty heavily customized CentOS 5
> Linux.
>
> Thanks,
> Kelly
>

Reply via email to