December 19th, 2011 |
admin |
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 [...]
December 19th, 2011 |
admin |
It appears that latest php version 5.1.6-20.el5_2.1 under RHEL / CentOS Linux v5.2 has made some major changes. As a result choort jail setup using previous instructions no longer works. PHP is crashing with segmentation fault errors. So I had to trace php errors using strace command. After spending couple of hours I found solution [...]
December 19th, 2011 |
admin |
So how do you restrict or deny access by IP address using Lighttpd web server? Lighttpd has mod_access module. The access module is used to deny access to files with given trailing path names. You need to combine this with remoteip conditional configuration. Syntax is as follows: $HTTP["remoteip"] == “IP” : Match on the remote [...]
December 19th, 2011 |
admin |
Hotlinking or leeching or direct linking comes under Bandwidth theft (also known as Inline linking). Wikipedia defines Inline linking as: Inline linking, also known as hotlinking, leeching, or direct linking is the placing of a linked object, often an image, from one site in a web page belonging to a second site. The second site [...]
December 19th, 2011 |
admin |
If you are running chrooted lighttpd web server, upgrade procedure is a bit tricky. You need to upgrade webserver, as well as php and related extensions. Following is common sequence you need to follow. I am just going to write down all steps, followed by actual Linux commands. If you need detailed instructions, please see [...]
December 19th, 2011 |
admin |
The instruction mentioned below only applies to Debian and Ubuntu Linux. I am going to document following things: => Install lighttpd => Prepare the file system for the jail => Run FastCGI PHP and MySQL from the jail => Add Perl support to the jail => Take care of sendmail => Run multiple domains (virtual [...]
December 16th, 2011 |
admin |
What is Ioncube Loader? IonCube loader is the PHP extension that decodes encrypted PHP files on runtime. It is freely available and installation is very easy. What is Zend Optimizer? The Zend Optimizer is a free runtime application that enables PHP to run the files encoded by the Zend Guard. This can be freely [...]
December 14th, 2011 |
admin |
If users try to open a Web page (http://example.com/dir1/file.php); I’d like to display a “URL Access Denied” message for /dir1/, /www/, and /dir2/cache/ directories under lighttpd web server? How do I configure lighttpd to deny access to directory? The mod_access module is used to deny access to files and directories. Edit /etc/lighttpd/lighttpd.conf file as follows: [...]
December 1st, 2011 |
admin |
The round-robin database tool aims to handle time-series data like network bandwidth, temperatures, CPU load etc. The data gets stored in round-robin database so that system storage footprint remains constant over time. Lighttpd comes with mod_rrdtool to monitor the server load and other details. This is useful for debugging and tuning lighttpd / fastcgi server [...]
December 1st, 2011 |
admin |
Edit conf file: /etc/lighttpd/lighttpd.conf Enable mod_expire and mod_compress. Expire static files set for 3 days: $HTTP["url"] =~ “\.(js|css|gif|jpg|png|ico|txt|swf|html|htm)$” { expire.url = ( “” => “access 3 days” ) } Compress mime types: compress.cache-dir = “/var/cache/lighttpd/compress/” compress.filetype = (“text/plain”, “text/html”, “text/css”, “text/xml”, “text/javascript”) Cleanup the compressed cache via daily cron script: #!/bin/bash # lighttpd_cache_clean # Clean [...]