姜戈 +莱特普德

发布于 2024-10-30 19:20:35 字数 290 浏览 7 评论 0原文

我在设置 django 和 lighttpd 时遇到一些问题。

这就是我想要做的:

  1. 让lighttpd管理fascgi进程(它们都在同一服务器上运行)
  2. 让django应用程序在站点的根目录下运行(所以没有django.fcgi)

或者我可以在启动时启动django,但我需要一个 ubuntu/debian 的启动/停止脚本。

另外,我如何处理媒体/管理媒体网址?我还想从文档根目录提供 /css /js /img ...

TIA 帕特里克

I am having some trouble getting django and lighttpd setup.

Here ist what I want to do:

  1. Have lighttpd manage the fascgi processes (they both are run on the same server)
  2. Have the django app run at the root of the site (so no django.fcgi)

Alternativly I could start django on startup, but I would need a start/stop script for ubuntu/debian.

Also how do I handle the media / admin media urls? Also I would like to serve /css /js /img from the document root ...

TIA
Patrick

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

月隐月明月朦胧 2024-11-06 19:20:35

请参阅:

https://github.com/cdsi/elrond/blob/ master/etc/lighttpd.conf

https:// github.com/cdsi/elrond/blob/master/var/www/elrond.wsgi

请务必相应地更新 env.ELROND_XXX 路径,并将: 更改

fastcgi.server          = ("/elrond" =>

为:

fastcgi.server          = ("/" =>

Please see:

https://github.com/cdsi/elrond/blob/master/etc/lighttpd.conf

https://github.com/cdsi/elrond/blob/master/var/www/elrond.wsgi

Be sure to update the env.ELROND_XXX paths accordingly, and change:

fastcgi.server          = ("/elrond" =>

to:

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