PacktLib: Lighttpd

Lighttpd

Credits

About the Author

About the Reviewer

Preface

Introduction to Lighttpd

Installing Lighttpd

Building Lighttpd using Autotools

Building Lighttpd using CMake

Summary

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

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

Downloads and Streams

Core Settings

Traffic Shaping

Showing Directory Contents

Securing Downloads

Streaming Content

Putting it All Together

Summary

Big Brother Lighttpd

Privacy

O Browser, Where Art Thou?

Access Logging

Tracking Users

Other Data Points

Summary

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

Securing Lighttpd

Barriers to Entry

Evading Denial of Service Attacks

Know Your Foe

Summary

Containing Lighttpd

Giving up Privileges

Changing Root

Separating the Backend

Summary

Optimizing Lighttpd

Installing http_load

Specific Optimizations

Profiling with gprof

Summary

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

CGI Revisited

Ruby on Rails

WordPress

phpMyAdmin

MediaWiki

Trac

AWStats

AjaxTerm

Summary

Using Lua with Lighttpd

Lua: A small Primer

Useful Lua Libraries

Lua/FastCGI

Running mod_magnet

Example: A Shoutbox

Summary

Writing Lighttpd Modules

Handling Configuration

Rewriting the Request

Manipulating the Response

Summary

HTTP Status Codes

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index

Module/Configuration Index