Linux 国防部wsgi 403禁止(centos 6,金字塔)

Linux 国防部wsgi 403禁止(centos 6,金字塔),linux,apache,permissions,centos,mod-wsgi,Linux,Apache,Permissions,Centos,Mod Wsgi,我在digitalocean上安装了centos 6.5服务器。我使用 yum安装mod_wsgi 我的配置文件(/etc/httpd/config.d/wsgi.conf)是: 他说: [root@spiralarms wsgi]# ls -l total 8 drwxr-xr-x 3 wsgi root 4096 May 16 09:35 modwsgi 从/home/wsgi目录作为根目录。 然后我启动了httpd并打开了它 我得到了这个信息: Forbidden You don't

我在digitalocean上安装了centos 6.5服务器。我使用 yum安装mod_wsgi 我的配置文件(/etc/httpd/config.d/wsgi.conf)是:

他说:

[root@spiralarms wsgi]# ls -l
total 8
drwxr-xr-x 3 wsgi root 4096 May 16 09:35 modwsgi
从/home/wsgi目录作为根目录。 然后我启动了httpd并打开了它 我得到了这个信息:

Forbidden

You don't have permission to access /testproject on this server.
Apache/2.2.15 (CentOS) Server at spiralarms.ddns.net Port 80

Plz help

通常是由于“/home/wsgi”中的主目录不可供Apache运行的用户访问而导致的。我键入了chmod 757-R modwsgi/现在它给出了内部服务器错误如果这是金字塔框架,它会吞下您的错误并创建一个500响应页面,如果Pyramid尚未将异常记录在Apache错误日志中,则必须确定如何配置Pyramid以记录异常的详细信息。您是否已检查Apache错误日志?
[root@spiralarms wsgi]# ls -l
total 8
drwxr-xr-x 3 wsgi root 4096 May 16 09:35 modwsgi
Forbidden

You don't have permission to access /testproject on this server.
Apache/2.2.15 (CentOS) Server at spiralarms.ddns.net Port 80