Lighttpd 下载脚本而不是执行它
我正在尝试让 Django 应用程序与 Lighttpd 一起运行。我按照此处的说明进行操作:
http://ca.rroll.net/2009/07/12/deploying-your-django-app-on-joyent-shared-accelerators/
但是当我转到该 URL 时,它会下载脚本而不是执行它。对我来说这似乎是一个 MIME 问题,但我不知道缺少什么。当然,也可能是完全不同的东西。
I'm trying to get a Django app running with Lighttpd. I followed the directions here:
http://ca.rroll.net/2009/07/12/deploying-your-django-app-on-joyent-shared-accelerators/
But when I go to the URL, it downloads the script instead of executing it. It seems like a MIME problem to me, but I have no idea what is missing. Of course, it could be something totally different.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Lighttpd 将默认未定义的 mimetypes 为“application/octet-stream”,这通常会导致浏览器想要下载二进制文件,以便您稍后可以使用适当的应用程序打开它。
您可能需要更改 mimetype 映射配置。
Lighttpd will default undefined mimetypes to "application/octet-stream" which usually causes browsers to want to download a binary so you can open it later with the appropriate application.
You likely need to change mimetype mapping configuration.