将DirectoryIndex应用于Apache中的别名

如何将DirectoryIndex应用到Apache中的别名而不会导致错误403?

这导致响应标题200:

http://localhost/提供http://localhost/index.html

 <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www DirectoryIndex index.html index.php index.xhtml index.htm default.htm <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> 

这导致错误403,被禁止:

http://localhost/aliasName/wwwrootDevelopmentSubDirectory/

 <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www DirectoryIndex index.html index.php index.xhtml index.htm default.htm <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> Alias /aliasName/ "/home/user/Dropbox/Level1/Level2/wwwrootDevelopment/" <Directory /home/user/Dropbox/Level1/Level2/wwwrootDevelopment> DirectoryIndex index.html index.php index.xhtml index.htm default.htm Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> 

error.log在浏览器中显示相同的消息。

 [Tue Apr 02 00:19:30 2013] [error] [client 172.xxx] (13)Permission denied: access to /aliasName/wwwrootDevelopmentSubDirectory/ denied, referer: http://localhost/ 

Solutions Collecting From Web of "将DirectoryIndex应用于Apache中的别名"