问题标签 [lighttpd]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
14051 浏览

apache - 如何将 Apache .htaccess 文件转换为 Lighttpd 规则?

将mod_rewrite规则转换为lighttpd格式是个大问题

0 投票
1 回答
3074 浏览

svn - Lighttpd 和 WebDAV 用于提供 Subversion 存储库

当我转到某个 URL 时,我已经配置(至少我尝试过配置)Lighty 以启用 WebDAV 插件。我没有收到任何错误,所以它似乎正在工作。那么,我如何配置它来服务于我的 subversion 存储库(其中我有很多)?

0 投票
2 回答
1597 浏览

trac - 如何设置 Trac 在子域上运行 / 使用 Lighttpd

我的 lighttpd.conf 中有以下配置:

它在 trac.domain.tld/trac 运行。我怎样才能让它在 trac.domain.tld/ 上运行,所以我将拥有 trac.domain.tld/wiki、trac.domain.tld/timeline 等,而不是 trac.domain.tld/trac/wiki 等。 .

0 投票
3 回答
2291 浏览

nginx - nginx设置问题

我知道这不是直接的编程问题,但 stackoverflow 上的人似乎能够回答任何问题。

我有一台运行 Centos 5.2 64 位的服务器。相当强大的双核 2 服务器,具有 4GB 内存。它主要提供静态文件、flash 和图片。当我使用 lighttpd 时,它很容易提供超过 80 MB/秒的速度,但是当我使用 nginx 进行测试时,它下降到低于 20 MB/秒。

我的设置非常简单,使用默认设置文件,并且添加了以下内容

而且我认为 nginx 应该至少同样强大,所以我一定没有做任何事情。

0 投票
1 回答
933 浏览

lighttpd - 在 lighttpd 中包含许多重写指令

我在并行子目录中有一堆项目,它们都有 etc/lighttpd.conf 文件。文件非常简单;它们只包含一个如下所示的指令:

不幸的是,我刚刚发现我不能简单地遍历它们,因为我会得到一个“重复的配置变量”错误。我看到我应该使用它的方式是这样的:

但是,如果我让我的每个目录配置文件只包含重写,并让一个 shell 脚本构建它们,我真的不能在每个目录文件中放置任何其他轻量级指令。再说一次,我是 lighty 的新手,所以也许我不需要也只是没有意识到。

这样做的“正确方法”是什么?

0 投票
5 回答
2576 浏览

django - Apache 或 lighttpd

对于开发,我使用本地 LAMP 堆栈,对于生产,我使用MediaTemple 的 Django Container(我喜欢 BTW)。MT 的容器使用 lighthttpd。老实说,我从来没有任何其他经验。我一直使用 Apache。我一直在阅读:

以下是问题:

  • 一个比另一个有什么优势?
  • 在我的开发设置中使用 lighthttpd 对我有好处
  • 两者都用有什么用?Linux.com 文章讨论了在 Apache 中使用lighttpd
0 投票
2 回答
2136 浏览

php - php-cgi 以 root 身份运行

我在 lighttpd 1.4 下将 php 5.2.6 作为 cgi 运行,出于某种原因,它始终以 root 身份运行。里面的所有php-cgi进程都归root所有,所有写入文件系统的文件都归root所有。

我已经尝试将 lighttpd 中的用户设置为非特权用户,并确认它运行正常,只是 php 以 root 身份运行。

我将如何设置 php-cgi 以作为更安全的用户运行?

0 投票
4 回答
4274 浏览

php - 你有什么建议用 php 设置共享服务器

从安全/性能的角度来看,您建议使用 php 设置共享服务器是什么?

  • Apache mod_php(你如何保护它?除了 safe_mode,因为它不会在 PHP6 中)
  • Apache CGI + suexec
  • Lighttpd 并为每个用户生成一个 FastCGI

LE:我对使用已经制作好的控制面板不感兴趣,因为我正在尝试编写自己的控制面板,所以我想知道自己设置它的最佳方法是什么。我正在考虑使用 Lighttpd 并为每个托管用户生成一个 fastcgi,使 fcgi 进程在他的凭据下运行(在 lighttpd wiki 上有一个教程)。这会有点安全,但这会影响性能(每个 fcgi 需要大量用户/内存)以至于它不是一个可行的解决方案吗?

0 投票
5 回答
3808 浏览

apache - apache + lighttpd 前端代理概念

为了减轻 Apache 的负载,人们经常建议使用 lighttpd 来提供静态内容。

例如http://www.linux.com/feature/51673

在此设置中,Apache 通过 mod_proxy 将静态内容请求传递回 lighttpd,同时自己处理动态请求。

我的问题是:这如何减少服务器的负载?由于您仍然为每个传入的请求生成一个 apache 进程,这对负载有何积极影响?从我可以看到,通过 lighttpd 代理其请求的 Apache 进程的大小与它为文件本身提供服务时一样大。

0 投票
3 回答
556 浏览

django - How to configure server for small hosting company for django-powered flash sites?

I'm looking at setting up a small company that hosts flash-based websites for artist portfolios. The customer control panel would be django-powered, and would provide the interface for uploading their images, managing galleries, selling prints, etc.

Seeing as the majority of traffic to the hosted sites would end up at their top level domain, this would result in only static media hits (the HTML page with the embedded flash movie), I could set up lighttpd or nginx to handle those requests, and pass the django stuff back to apache/mod_whatever.

Seems as if I could set this all up on one box, with the django sites framework keeping each site's admin separate.

I'm not much of a server admin. Are there any gotchas I'm not seeing?