我使用mod_wsgi连接烧瓶web应用程序。
但是现在我看到了这个错误日志。
AH01630: client denied by server configuration: /home/services httpd-vhosts.conf
WSGIRestrictEmbedded On
<VirtualHost *:443>
WSGIScriptAlias / /home/services/was/cash/cash.wsgi
WSGIDaemonProcess cash user=wasd group=operators processes=16 threads=16 display-name=%{GROUP}
WSGIApplicationGroup %{GLOBAL}
WSGIProcessGroup cash
Alias /static /home/services/was/cash/static
<Directory /home/services/was/cash/ >
Require all granted
</Directory>
</VirtualHost>例如httpd-vhosts.conf,我编写了Require all granted。
及相关目录如下:
[wasd@xxx ~]$ cd /home/service/
[wasd@xxx service]$ ls -al
total 28
drwxr-xr-x. 4 wasd operators 4096 Jun 29 17:07 .
drwxr-xr-x. 7 root root 4096 Jun 29 14:08 ..
drwxr-xr-x. 3 mysql dba 4096 May 13 14:58 mysql
drwxr-xr-x 3 wasd operators 4096 Jun 29 16:15 was
[wasd@xxx service]$
[wasd@xxx was]$ ls -al
total 16
drwxr-xr-x 3 wasd operators 4096 Jun 29 16:15 .
drwxr-xr-x. 4 wasd operators 4096 Jun 29 17:07 ..
drwxr-xr-x 7 wasd operators 4096 Jun 29 17:39 cash
[wasd@xxx was]$
drwxr-xr-x 7 wasd operators 4096 Jun 29 17:39 .
drwxr-xr-x 3 wasd operators 4096 Jun 29 16:15 ..
drwxr-xr-x 2 wasd operators 4096 Jun 29 16:41 commons
drwxr-xr-x 2 wasd operators 4096 Jun 29 16:41 lib
-rwxr-xr-x 1 wasd operators 47 Jun 29 16:41 requirements.txt
drwxr-xr-x 5 wasd operators 4096 Jun 29 16:41 static
-rwxr-xr-x 1 wasd operators 969 Jun 29 16:41 cash_base.py
-rwxr-xr-x 1 wasd operators 1067 Jun 29 16:41 cash.config
-rwxr-xr-x 1 wasd operators 131 Jun 29 16:41 cash.py
-rwxr-xr-x 1 wasd operators 149 Jun 29 16:41 cash.wsgi
drwxr-xr-x 2 wasd operators 4096 Jun 29 16:41 templates
drwxr-xr-x 2 wasd operators 4096 Jun 29 17:25 views
[wasd@xxx cash]$ 为什么要生成错误消息?如何解决这个问题?
改变配置?httpd.conf?
发布于 2015-06-29 09:19:29
您配置了:
<Directory /home/services/was/cash/ >但你展示了:
[wasd@xxx ~]$ cd /home/service/
[wasd@xxx service]$ ls -al 有两种选择:
mv /home/service /home/services或
<Directory /home/service/was/cash/ >记住服务的与服务
https://stackoverflow.com/questions/31111875
复制相似问题