Apache2 stats basic auth

Hello,

I’m already setup the apache2 stats for my server. But i want to add basic auth with htpasswd. Which line i add the credential at file apache-stats.py ?

thank’s and best regards.

Hi,

As for our documentation, /server-status is only allowed from localhost.

Why do you want to also add basic auth?

EDIT: Ok, our documentation doesnt sais anything about the restriction, sorry. What you need is to enable mod_status and require host localhost in the /server-status location.

https://httpd.apache.org/docs/2.4/en/mod/mod_status.html