Lighttpd run php from different host using mod_proxy / mod_fastcgi

November 11th, 2010 by upa_kid 
Lighttpd allows you to run php from different hosts. This is quite useful: a] If you want to run php 4 locally and php 5 from remote host b] Load balancing dynamic content c] Added layer for security for chrooted jails etc If you would like to run wikipedia / sf.net like site, you can use this technique. You can use mod_proxy or standard mod_fastcgi for this purpose. How it works? You need to use...

CentOS / Redhat Enterprise Linux Setup Lighttpd in Chroot Jail

November 10th, 2010 by upa_kid 
Many people asked me to write about setting up Lighttpd under CentOS or RHEL 5 Linux using chroot() call. The instructions are almost same but you need to make little modification as compare to Debian / Ubuntu Linux instructions. For example purpose we will build jail at /webroot location. => Default document root : /home/lighttpd/default/ => Port : 80 => IP: Your Public IP address =>...

Stop Hotlinking with Lighttpd

November 9th, 2010 by upa_kid 
The technology behind the World Wide Web, the Hypertext Transfer Protocol (HTTP), does not make any distinction of types of links — all links are functionally equal. Resources may be located on any server at any location. Linking to an image stored on another site increases the bandwidth use of that site even though the site is not being viewed as intended. The complaint may be the loss of...

Lighttpd Protect Different Directories With Different Password Files

November 4th, 2010 by upa_kid 
There is a way to protect different directories with different username/password under Lighttpd server. If you use different userfile files for authenticating in different directories, you can attach each to the correct directory by using conditionals. Let us see how to protect two different directories using conditionals directives: /docs/ with username tom /sales/ with username jerry Open lighttpd...

Integrating XCache Into PHP5 (Fedora 13 & Lighttpd)

November 3rd, 2010 by jennyamy 
Integrating XCache Into PHP5 (Fedora 13 & Lighttpd) This guide explains how to integrate XCache into PHP5 on a Fedora 13 system (with Lighttpd). From the XCache project page: “XCache is a fast, stable PHP opcode cacher that has been tested and is now running on production servers under high load.” It’s similar to other PHP opcode cachers, such as eAccelerator and APC. 1 Preliminary...

Lighttpd: Enable IPv6 Support

November 3rd, 2010 by upa_kid 
Lighttpd supports both IPv6 and IPv4 protocol out of box. You need to compile lighttpd with IPv6 support. The server.use-ipv6 option bind to the IPv6 socket. You need to bind to both IPv6 and IPv4 using the following syntax. First, see compile-time features (find out if IPv6 is enabled or not), enter: # lighttpd -V Sample output: Build-Date: Sep 30 2008 06:18:08 Event Handlers: + select (generic) +...

Installing Lighttpd With PHP5 And MySQL Support On OpenSUSE 11.3

October 27th, 2010 by Youzhny 
Installing Lighttpd With PHP5 And MySQL Support On OpenSUSE 11.3 Lighttpd is a secure, fast, standards-compliant web server designed for speed-critical environments. This tutorial shows how you can install Lighttpd on an OpenSUSE 11.3 server with PHP5 support (through FastCGI) and MySQL support (more…)