Hello,
I can't figure out how to properly configure the security for the wiki. I have tried both the .htaccess file and the LocationMatch solutions described here: https://www.dokuwiki.org/security
Currently, my setup is:
-Server: Apache
-My dokuwiki files are at /var/www/html/dokuwiki
-My configuration file, at /etc/apache2/sites-available/dokuwiki.conf
is:
<VirtualHost *:80>
ServerName dokuwiki.name.com
DocumentRoot /var/www/html/dokuwiki
<LocationMatch "/(data|conf|bin|inc|vendor)/">
Order allow,deny
Deny from all
Satisfy All
</LocationMatch>
ErrorLog /var/log/apache2/dokuwiki_error.log
CustomLog /var/log/apache2/dokuwiki_access.log combined
</VirtualHost>
-I am acessing the server through http://IP:PORT/dokuwiki/
-I also tried <LocationMatch "/var/www/html/dokuwiki/(data|conf|bin|inc|vendor)/">
The admin view says the data folder is not secured, and I can access http://IP:PORT/dokuwiki/data/pages/wiki/dokuwiki.txt
Any ideas? I imagine it's a simple issue but I have no experience with Apache and I'm not sure why this simple setup should not work.