[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 14:11:07 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29420
Nick Clemens <nick at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #127328|0 |1
is obsolete| |
--- Comment #2 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 127364
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=127364&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
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
--
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