Problem: want to serve a wiki inside home directory:
wiki -> /home/dang/data/mydirectory/www_local/tdwiki/www/dokuwiki-2012-09-10
2. Allow apache access permission
chown -R apache:apache /home/dang/data/mydirectory/www_local
3. Set x-permission for all dirs on the path.
chmod +x /home/dang chmod +x /home/dang/data chmod +x /home/dang/data/mydirectory chmod +x /home/dang/data/mydirectory/www_local
<Directory "/var/www/html/wiki">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Set execute x-permission as about, to all path
<IfModule alias_module>
Alias /lweb /home/dang/data/mydirectory/www_local
</IfModule>
<Directory "/home/dang/data/mydirectory/www_local">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Directory "/var/www/html/wiki">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>