Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Lighttpd
  • Table Of Contents Toc
Lighttpd

Lighttpd

By : Andre Bogus
4.3 (7)
close
close
Lighttpd

Lighttpd

4.3 (7)
By: Andre Bogus

Overview of this book

Table of Contents (20 chapters)
close
close
Lighttpd
Credits
About the Author
About the Reviewer
Preface
1
HTTP Status Codes

Chapter 12. Using Lua with Lighttpd

Now that we know how to attach most frameworks and applications to Lighttpd, it is time to have a look at a tiny, yet powerful scripting language, which can be used with FastCGI or directly integrated into Lighttpd.

Lua is one of the smallest scripting languages today (the whole distribution still fits on a floppy disk easily), and prides itself on being a meta-paradigm-language.

As of Lighttpd 1.3, a module for cache control added Lua as a programming language. This module was mod_cml (Cache Meta Language) and its purpose was restricted to control cache operation.

Since Lighttpd 1.4.7, this module has been superseded by mod_magnet, which allows Lua to manipulate the request and the reply with no startup cost. Instead it ties up the whole Lighttpd process while the script runs. Alternatively, there is a Lua/FastCGI application, by the author of Lighttpd, which reduces performance only a little, but runs outside the Lighttpd process.

If we have compiled our...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Lighttpd
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon