1

Heey all, I have a question regarding the Mod Status module of Apache.

https://www.apache.org/server-status

As you guys can see there is a line: Total accesses and a value after it. Is it possible to set restrictions of what to count and what not? For example I've written a program which get this server-status info every 5 seconds. The program will access the page so total accesses will be +1 extra. As the program is running on the specific server is it possible to restrict it from counting for calls coming from localhost?

1 Answer 1

1

No, it's not possible via configuration. I'd recommend just having a counter in your program counting the number of requests it has made, and subtract this from the total.

You can see the documentation for mod_status here; https://httpd.apache.org/docs/current/mod/mod_status.html As you can see, the only extra option you have is turning ExtendedStatus on.

You might be able to do it if you modify the mod, and recompile it.

1
  • Counter will be easy solution then (yet ugly) ah well
    – Baklap4
    May 2, 2016 at 7:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .