Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
DirectoryIndex在Apache别名中的应用_Apache_Alias_Directoryindex - Fatal编程技术网

DirectoryIndex在Apache别名中的应用

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

如何将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/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>