Free Sample
+ Collection


Andre Bogus

Installing, compiling, configuring, optimizing, and securing this lightning-fast web server
RRP $23.99
RRP $39.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781847192103
Paperback236 pages

About This Book

  • Install, configure, and work with Lighttpd
  • Migrate from Apache to Lighttpd
  • Set up Ruby on Rails, WordPress, MediaWiki etc.
  • Understand and harness Lua/FastCGI
  • Write custom modules/plugins for the Lighttpd API

Who This Book Is For

This book is for System Administrators or Web Developers seeking a lean deployment platform for web applications or who want to switch to a "lighter" web server than Apache.

Table of Contents

Chapter 1: Introduction to Lighttpd
Installing Lighttpd
Building Lighttpd using Autotools
Building Lighttpd using CMake
Chapter 2: Configuring and Running Lighttpd
Starting Lighttpd by Hand
Other Core Options
Mime Types
Rewriting and Redirecting Requests
Including Variables, Files, and Shell-code
Chapter 3: More Virtual Hosting and CGI
Extended Virtual Hosting
MySQL based Virtual Hosting
Going Dynamic
CGI with mod_cgi
mod_proxy_core and backends
Chapter 4: Downloads and Streams
Core Settings
Traffic Shaping
Showing Directory Contents
Securing Downloads
Streaming Content
Putting it All Together
Chapter 5: Big Brother Lighttpd
O Browser, Where Art Thou?
Access Logging
Tracking Users
Other Data Points
Chapter 6: Encryption: SSL
Self-Signed Keys
Being our own Certificate Authority
Obtaining a Key Pair from a Third-Party Supplier
Configuring Lighttpd to use SSL
Chapter 7: Securing Lighttpd
Barriers to Entry
Evading Denial of Service Attacks
Know Your Foe
Chapter 8: Containing Lighttpd
Giving up Privileges
Changing Root
Separating the Backend
Chapter 9: Optimizing Lighttpd
Installing http_load
Specific Optimizations
Profiling with gprof
Chapter 10: Migration from Apache
Adding Lighttpd to the Mix
Excursion: mod_proxy
Reducing Apache Load
mod_perl, mod_php, and mod_python
Rewriting Rules
Chapter 11: CGI Revisited
Ruby on Rails
Chapter 12: Using Lua with Lighttpd
Lua: A small Primer
Useful Lua Libraries
Running mod_magnet
Example: A Shoutbox
Chapter 13: Writing Lighttpd Modules
Handling Configuration
Rewriting the Request
Manipulating the Response

What You Will Learn

The book teaches the reader to install, configure, and work with Lighttpd:

  • Working with Lighttpd 's web application interfaces
  • Configuring Lighttpd to use SSL
  • Preventing attacks and minimizing damage if attacked
  • Virtual hosting
  • Migration from Apache to Lighttpd
  • Setting up web applications and frameworks: Ruby on Rails, WordPress, MediaWiki, trac, AjaxTerm, and more
  • Understand and harness Lua/FastCGI
  • Writing custom modules/plugins for the Lighttpd API

In Detail

Lighttpd is a secure, flexible, and most importantly, light web server designed and optimized for high performance environments. It is open-source and licensed under the revised BSD license. Its event-driven architecture optimized for a large number of parallel connections, its advanced features (FastCGI, CGI, Auth, Output Compression, URL Rewriting, and many more), and its small memory footprint compared to other web servers, make Lighttpd the perfect server software for every web server that suffers load problems or for serving static media separately from dynamic content.

Lighttpd supports the FastCGI, SCGI, and CGI interfaces to external programs, permitting web applications written in any programming language to be used with this server. Excellent performance for PHP, a particularly popular language, has received special attention. Additionally, Lighttpd has become popular within the Ruby on Rails community.


Read More

Recommended for You

Magento Site Performance Optimization
$ 13.99
web2py Application Development Cookbook
$ 29.99
CherryPy Essentials: Rapid Python Web Application Development
$ 16.80