[Koha-bugs] [Bug 29420] 401 Unauthorized pages come back as 200 OK under plack
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Nov 5 01:01:39 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29420
--- Comment #1 from Liz Rea <wizzyrea at gmail.com> ---
Created attachment 127328
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=127328&action=edit
Bug 29420 - 401 Unauthorized pages come back is 200 OK under plack
To test:
- create an alias in your /etc/koha/sites/<site>.conf file for something like
files
Alias /files "/var/lib/koha/kohadev/public_html/"
<Directory "/var/lib/koha/kohadev/public_html/">
Options +Indexes
AuthUserFile /var/lib/koha/kohadev/.htpasswd
AuthName ByPassword
AuthType Basic
<Limit GET POST PUT>
require valid-user
</Limit>
</Directory>
- make a .htpasswd file: https://hostingcanada.org/htpasswd-generator/ and put
it in /var/lib/koha/kohadev
- restart apache
- navigate to http://<kohadev url>/files, note that the response header in the
browser inspector says "200 OK" and the basic auth user/pass is not shown
- Apply this patch, restart the things
- navigate to http://<kohadev url>/files, note that the response header in the
browser inspector says "401 Unauthorized" and the basic auth user/pass is now
shown
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list