首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >apache2.4权限被拒绝

apache2.4权限被拒绝
EN

Stack Overflow用户
提问于 2015-06-29 09:13:43
回答 1查看 142关注 0票数 0

我使用mod_wsgi连接烧瓶web应用程序。

但是现在我看到了这个错误日志。

代码语言:javascript
复制
AH01630: client denied by server configuration: /home/services 

httpd-vhosts.conf

代码语言:javascript
复制
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

及相关目录如下:

代码语言:javascript
复制
[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?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-06-29 09:19:29

您配置了:

代码语言:javascript
复制
  <Directory  /home/services/was/cash/ >

但你展示了:

代码语言:javascript
复制
  [wasd@xxx ~]$ cd /home/service/
  [wasd@xxx service]$ ls -al 

有两种选择:

代码语言:javascript
复制
  mv /home/service /home/services

代码语言:javascript
复制
  <Directory  /home/service/was/cash/ >

记住服务与服务

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31111875

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档