Django with mod_wsgi on apache - 500错误:Authtype未设置? [英] Django with mod_wsgi on apache - 500 error: Authtype not set?

查看:528
本文介绍了Django with mod_wsgi on apache - 500错误:Authtype未设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Trying to deploy my first django site on Dreamhost...I had this working and then I'm not sure what I did to make it stop working.

这是错误消息:

[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信息,但我不认为这是问题,因为像我一样说我有网站工作。不知道这是否相关,但我也试图密码保护我的域(我在我的梦幻面板中做到这一点),以便人们看不到我的网站,因为我试图部署它 - 这是唯一的认证我可以想到这可能是导致这种情况,但是我已经关闭了密码保护,我仍然收到错误。

I can also include my wsgi.py info but I don't think it's the problem because like I said I had the site working. Not sure if this is relevant or not but I was also trying to password protect my domain(I did that in my dreamhost panel) so that people can't see my site as I'm trying to deploy it - that is the only authentication I can think of that might be causing this, but I took the password protection off and I'm still getting the error.

推荐答案

我与Apache v 2.2(Ubuntu)有同样的问题。从文档

I had the same problem with Apache v 2.2 (Ubuntu). From the documentation:

如果您使用Apache 2.4以上的版本,请替换要求所有授予的允许所有

"If you are using a version of Apache older than 2.4, replace Require all granted with Allow from all"

...并修正它。

这篇关于Django with mod_wsgi on apache - 500错误:Authtype未设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆