Lighttpd

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

Lighttpd

Andre Bogus

Installing, compiling, configuring, optimizing, and securing this lightning-fast web server
Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.80
RRP $23.99
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$16.80
$39.99
$29.99p/m after trial
RRP $23.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781847192103
Paperback236 pages

Book Description

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.

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

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

Read More Reviews