I followed the example in /etc/nagios4/apache2.conf to enable Digest authentication. I added the following into <DirectoryMatch>:
AuthDigestDomain "Nagios" AuthDigestProvider file AuthUserFile "/etc/apache2/.htpasswd.users" AuthGroupFile "/etc/groups" AuthName "Nagios Login" AuthType Digest Require valid-user
I do not get the login prompt when accessing localhost/nagios4. Am I missing something? I even tried to surround the above-mentioned code with <RequireAll></RequireAll> and to no avail.
Which product are you using? Is this on Nagios CSP, Nagios core, or Nagios XI?
Please follow the steps outlined in this document on Implementing Digest Authentication - https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/cgisecurity.html
If this is related to core please use the following forum to post this question - https://support.nagios.com/forum/viewforum.php?f=7