From Burkhard Schultheis@21:1/5 to All on Thu Mar 29 15:52:37 2018
I have to implement server-info with password protection on some SLES 12
SP3 servers running Apache 2.4. server-info works, but the server does
not ask for a password. I have done the following:
mod_info.conf:
<IfModule mod_info.c>
<Location /server-info>
SetHandler server-info
Require all denied
Require local
AuthType Basic
AuthName "Restricted area"
AuthBasicProvider file
AuthUserFile /usr/share/apache2/.htpasswd
Require user <username>
</Location>
<Directory /usr/share/apache2>
AllowOverride All
</Directory>
</IfModule>
I've created the file /usr/share/apache2/.htpasswd with htpasswd, of course. I've tried the following variations: Instead of using the one and only
user I've tried "valid_user". And I put the auth directives in a new "Directory" paragraph. Nothing changed.
From Burkhard Schultheis@21:1/5 to All on Thu Mar 29 16:18:24 2018
I have to implement server-info with password protection on some SLES 12
SP3 servers running Apache 2.4. server-info works, but the server does
not ask for a password. I have done the following:
mod_info.conf:
<IfModule mod_info.c>
<Location /server-info>
SetHandler server-info
Require all denied
Require local
AuthType Basic
AuthName "Restricted area"
AuthBasicProvider file
AuthUserFile /usr/share/apache2/.htpasswd
Require user <username>
</Location>
<Directory /usr/share/apache2>
AllowOverride All
</Directory>
</IfModule>
I've created the file /usr/share/apache2/.htpasswd with htpasswd, of course. I've tried the following variations: Instead of using the one and only
user I've tried "valid_user". And I put the auth directives in a new "Directory" paragraph. Nothing changed.