https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29420

--- Comment #1 from Liz Rea <wizzy...@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.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to