首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Apache配置-目录

Apache配置-目录
EN

Webmasters Stack Exchange用户
提问于 2014-12-11 00:30:38
回答 1查看 1.1K关注 0票数 1

我试图找出为什么我不能访问我的文件夹的电子邮件,但我得到了正确的位置,并复制了上面的工作目录。

Forbidden You don't have permission to access /mail on this server.

和HTTPD.exe报告

[Thu Dec 11 11:08:32.771044 2014] [core:warn] [pid 2340:tid 192] AH00114: Useless use of AllowOverride in line 674 of C:/Program Files/Apache/conf/httpd.conf.

然而,WPad在完全相同的设置下正确工作。

我对这些结果完全搞不懂。

代码语言:javascript
复制
<Directory "c:/inetpub/wwwroot/App_Data/wpad">
    #This one Works
    Options Indexes FollowSymLinks
    AllowOverride all

    order allow,deny
    allow from all
</Directory>

<Location "c:/inetpub/wwwroot/App_Data/WebMail">
   #This one dose not work
    Options Indexes FollowSymLinks
   #line 674 is below this
    AllowOverride all

    order allow,deny
    allow from all
</location>

<Directory "c:/inetpub/wwwroot/App_Data/">
    #
    # Possible values for the Options directive are "None", "all",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options all"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "all", "None", or any combination of the keywords:
    #   AllowOverride FileInfo AuthConfig Limit
    #
    AllowOverride all

    #
    # Controls who can get stuff from this server.
    #
    order allow,deny
    allow from 127.0.0.1
</Directory>

Alias /mail "c:/inetpub/wwwroot/App_Data/WebMail"
EN

回答 1

Webmasters Stack Exchange用户

回答已采纳

发布于 2014-12-11 00:39:58

把你的

来自:http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride

代码语言:javascript
复制
Only available in <Directory> sections

AllowOverride is valid only in <Directory> sections specified without regular
expressions, not in <Location>, <DirectoryMatch> or <Files> sections.
票数 1
EN
页面原文内容由Webmasters Stack Exchange提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://webmasters.stackexchange.com/questions/72876

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档