Lighttpd 下载脚本而不是执行它

发布于 2024-10-09 05:21:57 字数 349 浏览 0 评论 0原文

我正在尝试让 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦纸 2024-10-16 05:21:58

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文