尝试在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
发布评论