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 : Bogus
4.3 (7)
close
close
Lighttpd

Lighttpd

4.3 (7)
By: Bogus

Overview of this book

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 (20 chapters)
close
close
Lighttpd
Credits
About the Author
About the Reviewer
Preface
1
HTTP Status Codes

Including Variables, Files, and Shell-code


Lighttpd allows us to define and use variables in its configuration files. To make it easier to distinguish between a configuration option and a variable, you have to prefix your variables with var. as in var.docroot. Later on, you can use them by simply putting them in place of whatever value you have given them. For example:

var.docroot = "/var/www"
server.document-root = var.docroot

This can be useful if you have values that appear in a lot of places. Just put them in a variable and if you need to change the value, you only need to change it in one place. We can also set and get variables of the environment. The env namespace is reserved for this:

server.document-root = env.HOME + "/htdocs" # for a user dir
server.document-root = env.LIGHTTPD_BASE + var.htmldir
# to use an environment variable

You can also include files with an include statement:

include "some.conf"

This tells Lighttpd to parse the contents of some.conf as if they were in place...

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