Hello,
I would like to make an area (or specific pages) of my wiki to be restricted or password protected to the users without them needing to have an account. For example, I am making the wiki open except for one section where people can gain access if they know the password, in my case the section is a directory called "reports".
I tried to do this with Apache using .htaccess and setting up a .htpasswd file
When the .htaccess file is placed in /var/www/html/ it protects the whole site (prompting for a username and password), but when I move have the .htaccess file in the specific directory I would like to protect "/var/www/html/data/pages/reports" there is no effect. I think this has something to do with the directory and pages undergoing changes using .php, but I'm not sure.
I've tried many different "solutions", but none have worked for me.
Does anyone one know how this can be done, or perhaps a better way to do this?
I am using DokuWiki "Hogfather, Release 2020-07-09" and Apache 2.4.6 in a CentOS system, and ssl enabled.
I realize there might not be enough information here for someone to help me, but I have done so many changes I'm not sure what would be the most useful information to provide.
Please let me know if you might have any idea and I would gladly explain more as best as I can.
Thank you in advance!
Ray