为什么<limitexcept>参数结果在虚拟主机标记中出现“拒绝不允许此处”错误?</limitexcept>

时间:2012-02-03 09:45:32

标签: configuration apache2 webserver

在apache的httpd.conf之间VirtualHost个标签我把<LimitExcept>表达式如下所示:

<VirtualHost *:80>
 ServerName geopreprod.avea.com.tr

 <LimitExcept HEAD POST GET>
     Deny from all
 </LimitExcept> 

  ProxyRequests Off
  ProxyPreserveHost On

  <Proxy *>
    Order deny,allow
    Allow from all
  </Proxy>

  ProxyPass / http://XXXXXXXX...
  ProxyPassReverse / http://XXXXXXXX....
</VirtualHost>

然后apache web服务器无法启动,发出以下错误:

Syntax error on line 513 of XXXXX/httpd.conf:
deny not allowed here

虽然<LimitExcept>可以在offical docs中的VirtualHost标记中使用Context: server config, virtual host, directory, .htaccess ,但为什么会出现此错误?

在apache文档中说:

{{1}}

1 个答案:

答案 0 :(得分:0)

答案来自serverfault,here