NOTE: this guide is outdated. Need to make an updated post..
<a href="/dokuwiki/doku.php">My Wiki Page</a>
<meta http-equiv="refresh" content="9;url=/dokuwiki/doku.php">
Now, edit the dokuwiki config /etc/httpd/conf.d/dokuwiki.conf to have the following
# dokuwiki
# SElinux support for dokuwiki
# 0
#
Alias /dokuwiki /var/www/dokuwiki
<Directory /var/www/dokuwiki>
Options +FollowSymLinks
Order Allow,Deny
Allow from all
</Directory>
<Directory /var/www/dokuwiki/inc>
Order Deny,Allow
Deny from all
</Directory>
<Directory /var/www/dokuwiki/inc/lang>
Order Deny,Allow
Deny from all
</Directory>
<Directory /var/www/dokuwiki/lib/_fla>
## no access to the fla directory
Order allow,deny
Deny from all
</Directory>
#<Directory /etc/dokuwiki>
# Order Deny,Allow
# Deny from all
#</Directory>
In order to have the files you make unreadable to everyone in the world you will have to set up htaccess to limit permissions on the underlying data structures. To do this edit /etc/httpd/conf/httpd.conf to have the following in the htaccess section (search for htaccess)
<Directory /var/www/dokuwiki>
order deny,allow
allow from all
</Directory>
<LocationMatch "/dokuwiki/(data|conf|bin|inc)/">
order allow,deny
deny from all
satisfy all
</LocationMatch>