Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/14.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
Windows上的Apache 2.4-包含DocumentRoot之外的文件夹_Windows_Apache_Httpd.conf_Apache2.4 - Fatal编程技术网

Windows上的Apache 2.4-包含DocumentRoot之外的文件夹

Windows上的Apache 2.4-包含DocumentRoot之外的文件夹,windows,apache,httpd.conf,apache2.4,Windows,Apache,Httpd.conf,Apache2.4,我需要在我的httpd.conf上包含一个文件夹,该文件夹位于我的DocumentRoot目录之外。我知道有很多关于这方面的信息,但不是专门针对运行在Windows上的Apache 2.4。我尝试了很多东西,但任何东西都有效,我总是犯一个禁止的错误,这让我发疯 以下是我的默认配置,由WAMP创建: <Directory /> AllowOverride none Require all denied </Directory> DocumentRoot "

我需要在我的httpd.conf上包含一个文件夹,该文件夹位于我的
DocumentRoot
目录之外。我知道有很多关于这方面的信息,但不是专门针对运行在Windows上的Apache 2.4。我尝试了很多东西,但任何东西都有效,我总是犯一个禁止的错误,这让我发疯

以下是我的默认配置,由WAMP创建:

<Directory />
    AllowOverride none
    Require all denied
</Directory>

DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
    Options +Indexes +FollowSymLinks +Multiviews
    AllowOverride all
    Require local
</Directory>
有人能帮我吗?提前谢谢

<Directory "e:/Development/[Git]/projectName/public/">
    Require all granted
</Directory>
<Directory "e:/Development/[Git]/projectName/public/">
    Options +Indexes +FollowSymLinks +Multiviews
    AllowOverride all
    Require local
</Directory>
Alias /projectName "e:/Development/[Git]/projectName/public/"
# The <Directory> on attempts #1 and #2
# Disabling the security as below is not an option
<Directory />
    AllowOverride none
    Require all granted
</Directory>