lighttpd

我可以从 python cgi 写入 Lighttpd 日志文件吗?

我有一个 python cgi 脚本(只是 python,我没有使用任何框架)。它是在 openSUSE 上使用 Lighttpd 提供的。我想将我的日志记录语句(如 logging.info 等)重定向到 Lighttpd 日志文件。如果无法做到这一点,我该如何创建自己的日志文件?... »

如何为子目录映射设置 lighttpd?

对于相同的主机名,我想做如下映射 /subdirectory/_different_end_points_.json map to 127.0.0.1:9001 /_different_end_points_.json map to 127.0.0.1:9002 如何做到这一点?根据文档,要求 else 子句也必须匹配一个条件,这让我抓狂(作为正则表达式的初学者)... »

Mono / Lighttpd - 添加到通过 Response.Write() 返回的 SVG 文件的垃圾文本

我正在开发一个管理植物种群的 Web 应用程序。该应用程序的一个特点是能够以图表的形式查看植物之间的关系。此可视化生成为点文件,然后使用 GraphViz 转换为 SVG。然后使用 Response.Write() 技术通过 .aspx 文件将生成的 SVG 标记呈现给浏览器。 Aspx 标记: <%@ Page Language="C#" AutoEventWireup="true" ... »

c#

日志中的 lighttpd/fastcgi/python 错误

我在 Lighttpd 上运行一个 web.py 应用程序并注意到 ajax 请求偶尔会失败(有时它们很好,有时不是) - 所以我查看了错误日志,发现它充满了这个: 2014-07-02 17:22:33: (mod_fastcgi.c.2673) FastCGI-stderr: Traceback (most recent call last): 2014-07-02 17:22:33: (m... »

Html,外部 CSS 链接在 Linux 上失败

我知道有人问过类似的问题,但不明白为什么我们的外部 css 链接在 Linux 上不起作用。 Windows 和 Linux 上的文件夹结构是: / /static /css style.css /img /js /html index.html index.html 链接到 style.... »

Lighttpd fastcgi url 未重写

我有一个带有 fastcgi 和 web.py 的 lighttpd 服务器,具有以下 fcgi 配置: fastcgi.server = ( "/code.py" => (( "socket" => "/tmp/fastcgi.socket", "bin-path" => "/etc/lighttpd/code/code.py", "check-local" =... »

如何在 lighttd 服务器中同时运行多个 php 版本?

我有几个 php 项目,其中包含几个 php 版本,例如 php 5.6、php 7.0 等。 最近,我安装了 lighttpd 服务器作为本地服务器。这是我的 lighttpd.conf server.modules = ( "mod_access", "mod_alias", "mod_compress", "mod_fastcgi", ... »

php

lighttpd + perl + mojolicious =?

mojolicious 在 lighttpd 网络服务器下工作吗?怎么搭配?我需要设置 FastCGI 吗?这是我第一次使用 lighttpd。... »

Lighttpd:让子路径指向不同的文档根

我有一个指向文档根 /var/www 的 lighttpd-Setup。但是,我希望 URL other/ 指向 /some/other/dir。我正在使用以下配置进行此操作: $HTTP["url"] =~ "^/other($|/)" { server.document-root = "/some/other/dir" } 但是,如果我访问“http://myhost/other”,... »

FastCGI、Lighttpd 和 Flask

我正在 Raspberry Pi 上设置一个简单的 Web 服务器,但我似乎无法正确设置 lighttpd、fastcgi 和 flask。 到目前为止,我已经对/etc/lighttpd/lighttpd.conf 进行了几次迭代,最近的一次是 fastcgi.server = ("/test" => "test" => ( "socket" => ... »

lighttpd 将 http://www 重定向到 https://www

我正在尝试将 domain.com 重定向到 https://www.domain.com。 我有以下规则: $HTTP["host"] =~ "^domain\.com$" { url.redirect = ( "^/(.*)" => "https://www.domain.com/$1" ) } 它适用于http://domain.com -> https://www.domai... »

X-Sendfile 错误

我正在尝试使用 lighttpd 中的 X-Sendfile 指令发送文件。 我的php代码是; header("Content-Type: application/force-download"); header( "Content-Disposition: attachment; filename=" . 's.php'); header("Content-Length: ". files... »

php

fcgi_stdio 和 fcgiapp 有什么区别?

我正在尝试开始进行 fastcgi 开发,因此我下载了libfcgi 的参考实现并尝试让测试程序与lighttpd 一起运行。由于fcgi_stdio 允许cgi 向后兼容,我决定从它开始。 但是我无法让examples/tiny-fcgi.c 与lighttpd 一起工作,它产生了internal server errror 500,相同的配置允许运行lighttpd 示例程序(http://r... »

c++

从网络服务器运行系统调用

我正在尝试从 cgi python 脚本运行标准的 python os.system 调用。 这是教程的一部分,因此脚本非常简单。我正在尝试使用 Raspberry Pi 相机拍照并将其显示在网页中。 import os, sys os.system('raspistill -o /var/www/images/image.jpg') print "Content-type:text/htm... »

lighttpd 条件重写

最初我想在我的网址中添加尾随 / (lighttpd) 这是可能的 url.redirect = ( "^(.*[^/])$" => "$1/" ) 现在我需要排除一些扩展名,如 .txt、png 等。我想为除这些扩展名之外的所有内容添加斜杠,我似乎无法正常工作。 在 apache 中我可以使用条件重写,你将如何在 lighttpd 中做到这一点。 任何方向都将受到高度... »

在 Windows 上使用 nginx/Lighttpd/mono/fastcgi 的 ASP.Net

为了满足 ASP.Net 应用程序的基本要求,我需要在 Windows 上运行 Web 服务器(nginx 或 lighttpd)。我正在尝试将 mono 2.10 中的 fastcgi-mono-server4 用于 windows,但没有任何运气。 我的 ASP.Net 应用程序只是一个带有要初始化的最小 global.asax 的 httpmodule,而且我使用自己的 mvc 框架,所以我... »

后端在系统启动时关闭

我在 lighttpd (fastcgi) 上使用 python。当我使用/etc/init.d/lighttpd start 启动服务器时,一切正常。 但现在我已经用update-rc.d lighttpd defaults 60 将它添加到system-v init 中,重启后我在错误日志中有这个东西: 2011-03-24 22:57:01: (log.c.164) server sta... »

Ubuntu 上 Lighttpd + FCGI 中的 Django - 当我启用第二个站点时重写停止工作

我已将 lighttp 配置为通过 ubuntu 上的 fastcgi 启动和服务 django。当我只启用了一个站点时(通过 ubuntu 的类似 apache 的 conf-available、conf-enabled 机制),一切运行良好。当我启用第二个站点时,我的 url 重写似乎停止正常工作,尽管 fcgi 进程已启动并提供数据。这是我的配置: conf-available/10-ex... »

将 nginx 转换为 lighttpd 重写规则

我需要将 nginx 服务器更改为 lighttpd 服务器。 CMS 应在支持 URL 重写的 Web 服务器上运行。下面提供了工作 nginx 配置。问题是将 nginx 配置转换为 lighttpd 配置。 server { # The port to listen on listen 8086; # The host to listen... »