DirectoryIndex在Apache别名中的应用
如何将DirectoryIndex应用于Apache中的别名而不导致错误403 这将导致响应头200:DirectoryIndex在Apache别名中的应用,apache,alias,directoryindex,Apache,Alias,Directoryindex,如何将DirectoryIndex应用于Apache中的别名而不导致错误403 这将导致响应头200: http://localhost/哪一个显示 http://localhost/index.html error.log显示浏览器中显示的相同消息 [Tue Apr 02 00:19:30 2013] [error] [client 172.x.x.x] (13)Permission denied: access to /aliasName/wwwrootDevelopmentSubDire
http://localhost/
哪一个显示
http://localhost/index.html
error.log显示浏览器中显示的相同消息
[Tue Apr 02 00:19:30 2013] [error] [client 172.x.x.x] (13)Permission denied: access to /aliasName/wwwrootDevelopmentSubDirectory/ denied, referer: http://localhost/
别名的DirectoryIndex应位于apache2中该别名的特定指令中
Alias /pma "/var/www/pma"
<Directory "/var/www/pma">
DirectoryIndex adminer.php
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Alias/pma”/var/www/pma“
directoryindexadminer.php
选项索引跟随符号链接
允许超越所有
要求所有授权
[Tue Apr 02 00:19:30 2013] [error] [client 172.x.x.x] (13)Permission denied: access to /aliasName/wwwrootDevelopmentSubDirectory/ denied, referer: http://localhost/
Alias /pma "/var/www/pma"
<Directory "/var/www/pma">
DirectoryIndex adminer.php
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>