[Koha-bugs] [Bug 29420] HTTP status code incorrect when calling error pages directly under Plack/PSGI

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 1 02:35:35 CET 2021


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

--- Comment #17 from David Cook <dcook at prosentient.com.au> ---
For Liz's use case:

To test:

- mkdir /var/lib/koha/kohadev/public_html
- create an alias in your /etc/apache2/sites-enabled/kohadev.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
- service apache2 reload
- navigate to http://localhost:8080/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://localhost:8080/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 watching all bug changes.


More information about the Koha-bugs mailing list