HTTPD / WSGI / Flask - AH01630: клиент отклонен из-за конфигурации сервера - PullRequest
0 голосов
/ 06 октября 2019

Я запускаю приложение фляги с 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 и как ее исправить?

...