Lighttpd

Installing, compiling, configuring, optimizing, and securing this lightning-fast web server

Lighttpd

Starting
Andre Bogus

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

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 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.

+ Collection
Free Sample

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
Summary
Chapter 2: Configuring and Running Lighttpd
Starting Lighttpd by Hand
Other Core Options
Mime Types
Selectors
Rewriting and Redirecting Requests
Including Variables, Files, and Shell-code
Summary
Chapter 3: More Virtual Hosting and CGI
Extended Virtual Hosting
MySQL based Virtual Hosting
Going Dynamic
CGI with mod_cgi
FastCGI
SCGI
mod_proxy_core and backends
Summary
Chapter 4: Downloads and Streams
Core Settings
Traffic Shaping
Showing Directory Contents
Securing Downloads
Streaming Content
Putting it All Together
Summary
Chapter 5: Big Brother Lighttpd
Privacy
O Browser, Where Art Thou?
Access Logging
Tracking Users
Other Data Points
Summary
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
Summary
Chapter 7: Securing Lighttpd
Barriers to Entry
Evading Denial of Service Attacks
Know Your Foe
Summary
Chapter 8: Containing Lighttpd
Giving up Privileges
Changing Root
Separating the Backend
Summary
Chapter 9: Optimizing Lighttpd
Installing http_load
Specific Optimizations
Profiling with gprof
Summary
Chapter 10: Migration from Apache
Adding Lighttpd to the Mix
Excursion: mod_proxy
Reducing Apache Load
mod_perl, mod_php, and mod_python
.htaccess
Rewriting Rules
WebDAV
Summary
Chapter 11: CGI Revisited
Ruby on Rails
WordPress
phpMyAdmin
MediaWiki
Trac
AWStats
AjaxTerm
Summary
Chapter 12: Using Lua with Lighttpd
Lua: A small Primer
Useful Lua Libraries
Lua/FastCGI
Running mod_magnet
Example: A Shoutbox
Summary
Chapter 13: Writing Lighttpd Modules
Handling Configuration
Rewriting the Request
Manipulating the Response
Summary

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.

Authors

Table of Contents

Chapter 1: Introduction to Lighttpd
Installing Lighttpd
Building Lighttpd using Autotools
Building Lighttpd using CMake
Summary
Chapter 2: Configuring and Running Lighttpd
Starting Lighttpd by Hand
Other Core Options
Mime Types
Selectors
Rewriting and Redirecting Requests
Including Variables, Files, and Shell-code
Summary
Chapter 3: More Virtual Hosting and CGI
Extended Virtual Hosting
MySQL based Virtual Hosting
Going Dynamic
CGI with mod_cgi
FastCGI
SCGI
mod_proxy_core and backends
Summary
Chapter 4: Downloads and Streams
Core Settings
Traffic Shaping
Showing Directory Contents
Securing Downloads
Streaming Content
Putting it All Together
Summary
Chapter 5: Big Brother Lighttpd
Privacy
O Browser, Where Art Thou?
Access Logging
Tracking Users
Other Data Points
Summary
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
Summary
Chapter 7: Securing Lighttpd
Barriers to Entry
Evading Denial of Service Attacks
Know Your Foe
Summary
Chapter 8: Containing Lighttpd
Giving up Privileges
Changing Root
Separating the Backend
Summary
Chapter 9: Optimizing Lighttpd
Installing http_load
Specific Optimizations
Profiling with gprof
Summary
Chapter 10: Migration from Apache
Adding Lighttpd to the Mix
Excursion: mod_proxy
Reducing Apache Load
mod_perl, mod_php, and mod_python
.htaccess
Rewriting Rules
WebDAV
Summary
Chapter 11: CGI Revisited
Ruby on Rails
WordPress
phpMyAdmin
MediaWiki
Trac
AWStats
AjaxTerm
Summary
Chapter 12: Using Lua with Lighttpd
Lua: A small Primer
Useful Lua Libraries
Lua/FastCGI
Running mod_magnet
Example: A Shoutbox
Summary
Chapter 13: Writing Lighttpd Modules
Handling Configuration
Rewriting the Request
Manipulating the Response
Summary

Book Details

ISBN 139781847192103
Paperback236 pages
Read More

Recommended for You

Zabbix Performance Tuning
$ 10.00
Magento Site Performance Optimization
$ 10.00
web2py Application Development Cookbook
$ 10.00
CherryPy Essentials: Rapid Python Web Application Development
$ 10.00