lighttpd

lighttpd PHP Error: 403 - Forbidden

ⅰ亾dé卋堺 提交于 2019-12-12 16:12:20
问题 I have been trying to configure a web server using lighttpd on Windows. After installing PHP, everytime I try to access a PHP file from the directory 'htdocs,' I get the error: '403 - Forbidden.' I have followed this tutorial to setup lighttpd: http://joshdick.net/writing/lighttpd. I have searched Google, but haven't found any good documentation on this problem. FYI: I'm pretty new to this. I have the content of my 'lighttpd-inc.conf' file here. Any help would be greatly appreciated. Thanks!

Lighttpd rewrite for Wordpress inside CakePHP

不羁的心 提交于 2019-12-12 03:11:09
问题 I'm having problems to setup Lighttpd rewrite rule for a Wordpress instalation that is located inside a CakePHP app. The folder structure looks like this: var/ www/ app/ webroot/ blog/ cake/ vendors/ The cakePHP app works fine. If I try to access http://domain.tld , it loads the app front page. Any attempt to access a controller/action also works fine. The problem happens when I try to load any wordpress post. The url structure to access a WP post is this: http://domain.tld/blog/post/post

Mod rewrite, need to allow only letters, numbers and white spaces

房东的猫 提交于 2019-12-12 01:48:58
问题 Since I need to allow my users, to search strings with white spaces, I need to modify this rewrite rule (lighttpd engine). "^/(results)/(query)/([0-9a-zA-Z_]+)$" => "index.php?action=results&query=$3", To allow only letters, numbers and white spaces (I guess only those are needed to search some data from MySQL?). Thank you in advance. 回答1: Whitespace in regex is \s "^/(results)/(query)/([0-9a-zA-Z_\s]+)$" => "index.php?action=results&query=$3" or "^/(results)/(query)/([\w\d\s_]+)$" => "index

Change QUERYSTRING with the lighttpd proxy

血红的双手。 提交于 2019-12-11 23:27:01
问题 First of all sorry for my English, hope you can undestand it. I need to change the URL of the destination server with Lighttpd, I mean, someone is going to write an URL like http://my.proxy.server.com/MYQUERY and I need to change it to something like http://XXX.XXX.XXX.XXX/search?q=MYQUERY. I tried to add an "querystring" option like the configuration below but it didn't work. proxy.server = ( "" => ( ( "host" => "XXX.XXX.XXX.XXX", "port" => 80, "querystring" => "/search?q=$HTTP[querystring]"

Debian + Lightppd + PHP 安装与配置

大兔子大兔子 提交于 2019-12-11 20:14:07
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 主题:Debian + Lightppd + PHP 安装与配置 时间:2009-12-09 作者:cookphp 部分依赖包 ------------------------------------------- apt-get install gcc apt-get install libxml2-dev apt-get install make ------------------------------------------- 一 lighttpd apt-get install lighttpd 二 php 1 下载 wget http://cn2.php.net/distributions/php-5.2.11.tar.gz 2 解压 tar -zxvf php-5.2.11.tar.gz 3 编译 ./configure --enable-fastcgi --enable-force-cgi-redirect make | make install 三 lighttpd + php 1 检查 php-cgi 是否已经安装 php-cgi -v -----------------------------------------------------------------------------

Debian编译lighttpd-1.4.32

和自甴很熟 提交于 2019-12-11 20:11:21
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Debian编译lighttpd-1.4.32 作者: root@\Debian :~# 网站: http://www.52d.me 好吧,我想说, 我喜欢root@\Debian:~#这个霸气的名字,可惜啊,开源中国不支持超过10字符。 话说,本来想搞个lighttpd+mysql+php轻量Web服务器在本地做一些测试的。 最后按官方的方法编译安装,好吧,最后发现跟本就成功不了。 最后排查,发现,利马坑爹啊。 官方包里的那个开机脚本 [doc/initscripts/rc.lighttpd] 啊!是那里来的啊!~ 好吧,不吐槽了,看我的编译过程吧。 一键下载解压 <!-- lang: shell --> curl --progress http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.32.tar.gz | tar xz 进入目录 <!-- lang: shell --> cd lighttpd-1.4.32 建立用户组与用户 <!-- lang: shell --> groupadd www useradd -s /sbin/nologin -g www www 查看配置帮助 / 自己撸就需要看一下 <!-- lang:

在 Linux 中安装 Lighttpd Web 服务器

强颜欢笑 提交于 2019-12-11 20:11:06
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 安装Lighttpd 使用包管理器安装 这里我们通过使用包管理器这种最简单的方法来安装 Lighttpd。只需以 sudo 模式在终端或控制台中输入下面的指令即可。 CentOS 7 由于 CentOS 7.0 官方仓库中并没有提供 Lighttpd,所以我们需要在系统中安装额外的软件源 epel 仓库。使用下面的 yum 指令来安装 epel。 # yum install epel-release 然后,我们需要更新系统及为 Lighttpd 的安装做前置准备。 # yum update # yum install lighttpd Ubuntu 15.04 Ubuntu 15.04 官方仓库中包含了 Lighttpd,所以只需更新本地仓库索引并使用 apt-get 指令即可安装 Lighttpd。 # apt-get update # apt-get install lighttpd 从源代码安装 Lighttpd 如果想从 Lighttpd 源码安装最新版本(例如 1.4.39),我们需要在本地编译源码并进行安装。首先我们要安装编译源码所需的依赖包。 # cd /tmp/ # wget http://download.lighttpd.net/lighttpd/releases-1.4.x

INSTALLING LIGHTTPD on CentOS 6.2

强颜欢笑 提交于 2019-12-11 20:07:57
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> ** lighttpd_logo Here is a simple guide to set up a working LIGHTTPD web server on CentOS 6.2 server. let’s get started.. CONFIGURATION: Step 1: make sure you have connectivity! And DNS resolution! [root@localhost]# ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=45 time=45.9 ms [root@localhost]# ping www.google.it PING www-cctld.l.google.com (173.194.35.151) 56(84) bytes of data. 64 bytes from muc03s01-in-f23.1e100.net (173.194.35.151): icmp_seq=1 ttl=51 time=48.9 ms Step 2: install the packages ZLIB data

How to assure security for a video streaming using Lighttpd?

孤街浪徒 提交于 2019-12-11 18:49:58
问题 I need to stream a video which is present on server say xyz.com. If I access the correct path of the video everyone is able to see that video. What I need to do is that create a MD5sum corresponding to the every particular video which has an unique video id. So that from now onwards if the user is accessing the video as before ie : it should not load for the below. http:/xyz.com/video.mp4 It should load only for the following url http:/xyz.com/video.mp4?md5=202cb962ac59075b964b07152d234b70

lighttpd - redirect of ip address

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 14:26:12
问题 I'm trying to redirect an ipaddress-as-URL to the formal hostname as URL: debug.log-request-handling = "enable" debug.log-request-header = "enable" debug.log-response-header = "enable" debug.log-ssl-noise = "enable" debug.log-condition-handling = "enable" $HTTP["host"] == "192.168.1.20" { url.redirect = ( ".*" => "http://pihole.home.lan/" ) } But it doesn't work. Relevant log entries: 2019-02-26 13:01:35: (request.c.436) fd: 10 request-len: 331 \nGET / HTTP/1.1\r\nHost: 192.168.1.20\r\nUser