Django with mod

编程入门 行业动态 更新时间:2024-10-24 10:14:16
本文介绍了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/dir/project/wsgi.py <Directory /home/username/mysite/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

本文发布于:2023-11-01 12:27:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1549328.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Django   mod

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!