Article 5SW71 htpasswd authname problem

htpasswd authname problem

by
chatlow
from LinuxQuestions.org on (#5SW71)
Hi All

Have a small site running on my RaspPI at home - apache2/php. Have created .htpasswd file in /etc/apache2/ and set it to be used in my main ssl config in apache2/sites-available/

Looks a bit like this:

<Directory "/var/www/html/site">
AuthType Basic
AuthName "Please enter username and password on back of invite"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user
Options Indexes FollowSymLinks MultiViews
# AllowOverride controls what directives may be placed in .htaccess files.
AllowOverride All
# Controls who can get stuff from this server file
Order allow,deny
Allow from all
</Directory>
<IfModule mpm_peruser_module>
ServerEnvironment apache apache
</IfModule>

It works, however the AuthName is not showing what I have asked it to. Instead the prompt appears on desktop saying Sign in and on my mobile: requires a user name and password.
Any idea why the AuthName value is not being respected?

Site is behind Cloudflare which is set to under attack mode and checks all user agents. Can't see this being an issue though.

Thankslatest?d=yIl2AUoC8zA latest?i=Yosth-jfskk:uvxkDHwPdN8:F7zBnMy latest?i=Yosth-jfskk:uvxkDHwPdN8:V_sGLiP latest?d=qj6IDK7rITs latest?i=Yosth-jfskk:uvxkDHwPdN8:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments