因此,我在我的apache2.4虚拟主机上获得了403: Forbidden错误。
有趣的是,/var/log/apache2/error.log报告:
authz_core:error] [pid 4878:tid 140394394269440] [client 10.214.154.19:33009] AH01630: client denied by server configuration
还有..。虽然我确实有其他使用authz的Virtualhost(主要用于subversion托管),但除了我有问题的一个之外,我禁用了所有这些虚拟主机,重新启动Apache,没有明显的区别。
这里是我的Apache2站点-可用的文件,即使我已经禁用了所有其他主机信任,并将我的配置降到最低,仍然拒绝访问。
<VirtualHost *:443>
WSGIScriptAlias /example /data/example/example.wsgi
<Directory /data/example>
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
Require all granted
</Directory>
LogLevel info
SSLEngine on
SSLCertificateFile /etc/ssl/certs/example.pem
SSLCertificateKeyFile /etc/ssl/private/example.key
</VirtualHost>此外,为了验证它不是我的wsgi脚本,我将脚本替换为:
def application(environ, start_response):
start_response('200 OK',[('Content-type','text/html')])
return ['<html><body>Hello World!</body></html>']但这并没有什么明显的区别。
有什么想法吗?
发布于 2015-01-22 19:37:03
正如Apache“客户端被服务器配置拒绝”,尽管允许访问目录(vhost配置)中所指出的,问题是Apache2.4已经改变了授权配置的方式。authz_core模块实际上是内置的,这似乎是一个混乱的根源。
如果您只是简单地删除订单并允许行,那么事情就应该像预期的那样工作。详情请参见http://httpd.apache.org/docs/2.4/upgrading.html。
https://serverfault.com/questions/661644
复制相似问题