Django与apache上的mod_wsgi - 500错误:Authtype未设置?

时间:2013-08-05 17:28:04

标签: django apache mod-wsgi

尝试在Dreamhost上部署我的第一个django网站...我有这个工作,然后我不知道我做了什么让它停止工作。

这是错误消息:

[crit] [client 74.72.99.26] configuration error:  couldn't perform authentication. AuthType not set!: /internal_error.html

<VirtualHost :80>
WSGIScriptAlias / /home/username/mysite.com/dir/project/wsgi.py
<Directory /home/username/mysite.com/dir/project>
<Files wsgi.py>
Order deny,allow
Require all granted
</Files>
</Directory>
</VirtualHost>

我也可以包含我的wsgi.py信息,但我不认为这是问题,因为就像我说我有网站工作。不确定这是否相关,但我也试图密码保护我的域名(我在我的dreamhost面板中做了),以便人们无法看到我的网站,因为我正在尝试部署它 - 这是唯一的身份验证我可以想到这可能会造成这种情况,但我取消了密码保护,我仍然收到错误。

1 个答案:

答案 0 :(得分:28)

我遇到了与Apache v 2.2(Ubuntu)相同的问题。来自documentation

“如果您使用的是早于2.4的Apache版本,请将Require all granted替换为Allow from all

......并修复了它。

相关问题