Getting 403 Error: Apache2 mod_wsgi

Getting 403 Error: Apache2 mod_wsgi

我和我的一个朋友在获取 PI Joule's @channel (Link to "Production" Readme) to work, currently supposed to be running at the domain atchannel.cf, as per the person's guide to set it up, as well as do what it said in the main README file here

的原始实体时遇到了问题
<VirtualHost *:80>
    ServerName atchannel.cf
    WSGIScriptAlias / /var/www-atchannel/atchannel.wsgi
    <Directory /var/www-atchannel>
        Require all granted
    </Directory>
    Alias /static /var/www-atchannel/atchannel/static
    <Directory /var/www-atchannel/atchannel/static/>
        Require all granted
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/errorAtChannel.log
    LogLevel warn
    CustomLog ${APACHE_LOG_DIR}/accessAtChannel.log combined


 </VirtualHost>

这是文件的 Apache 虚拟主机,它与站点的路径匹配,但仍然是 returns 403 禁止错误。谁能告诉我们哪里做错了?

而不是:

<Directory /var/www-atchannel/atchannel/>
    Order allow,deny
    Allow from all
</Directory>

你应该有:

<Directory /var/www-atchannel>
    Order allow,deny
    Allow from all
</Directory>

该目录与 WSGI 脚本文件所在的前导路径不匹配。