带有mod_wsgi的Apache 2.4:403 Forbidden,没有权限访问此服务器上的/ calbase

时间:2016-09-29 21:01:17

标签: django apache mod-wsgi

所以我试图在Windows服务器上部署我的django项目,使用带有mod_wsgi和pythong 3.4的apache 2.4。在我配置httpd.conf并尝试使用mod-wsgi安装启动apache之前,它可以工作并告诉我"它可以工作"页。然后我在httpd.conf中进行了以下配置:

text-transform: uppercase;

然后尝试转到localhost:8080(我将端口从80更改为8080),我收到此错误说:

  

禁止

     

您无权访问此服务器上的内容。

以下是相关的error.log。

.font-alt, .font-serif, .rotate

.font-alt {
    font-family: "Roboto Condensed", sans-serif;
    text-transform: uppercase;
    }

.font-serif {
    font-family: Volkhov, "Times New Roman", sans-serif;
    text-transform: uppercase;
    }

.large-text {
    font-size: 24px !important;
    }

.rotate {
    text-shadow: none !important;
    text-transform: uppercase;        
    }

有人可以帮忙吗? TIA。

1 个答案:

答案 0 :(得分:3)

部分:

<Directory /EquipmentCalibration/equipcale>
<Files wsgi.py>
Require all granted
</Files>
</Directory>

的目录名称与WSGIScriptAlias指令中使用的目录名称相匹配。一个使用equipcal,另一个使用equipcale。他们需要匹配该段名称。