【发布时间】:2020-02-04 02:42:05
【问题描述】:
我正在使用 Apache HTTPD + mod_wsgi 运行烧瓶应用程序。该应用程序运行良好,但每次访问页面时都会在 error_log 中出现错误。 (我正在尝试优化应用程序)。
错误是:AH01630:客户端被服务器配置拒绝:/apps/apache/httpd_atlas/htdocs/
HTTPD.conf 包含
# Block all files by default, unless specifically allowed.
<FilesMatch "^.*$">
Require all denied
</FilesMatch>
DocumentRoot "/apps/apache/httpd_atlas/htdocs/"
<Directory />
Options None
AllowOverride None
Require all granted
</Directory>
# To enforce IP restrictions on RBB sites - replace [Allow from all] line below with [Allow from <local_ip_address> <TAM_WebSeal_hostname_or_ip>].
# If this site is accessed thru a proxy - you should allow access to the proxy host. If you want to enforce IP restrictions on this site, you
# should configure this on the proxy site.
<Directory "/apps/apache/httpd_atlas/htdocs/">
Options None
AllowOverride None
Require all granted
</Directory>
<FilesMatch "^.*\.(css|html?|js|pdf|txt|xml|xsl|gif|ico|jpe?g|png)$">
Require all granted
</FilesMatch>
ScriptAlias /cgi-bin/ "/apps/apache/httpd_atlas/cgi-bin/"
<Directory "/apps/apache/httpd_atlas/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>
# WSGI Management
WSGIScriptAlias /atlas-test /apps/atlas/atlasda/webapp/toolkit-test/app.wsgi application-group=%<GLOBAL>
WSGIPythonHome /apps/atlas/anaconda
即使这个应用程序被 WSGI 正确服务后,为什么 error_log 中会写入错误以及如何修复它?
【问题讨论】:
标签: apache httpd.conf