annotate lighttpd/lighttpd.conf @ 59:0037de90af8b

Add a screenshot on the front page.
author John "Elwin" Edwards
date Wed, 14 Jan 2015 10:21:10 -0500
parents b1d3a618c254
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
1 #######################################################################
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
2 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
3 ## /etc/lighttpd/lighttpd.conf
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
4 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
5 ## check /etc/lighttpd/conf.d/*.conf for the configuration of modules.
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
6 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
7 #######################################################################
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
8
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
9 #######################################################################
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
10 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
11 ## Some Variable definition which will make chrooting easier.
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
12 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
13 ## if you add a variable here. Add the corresponding variable in the
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
14 ## chroot example aswell.
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
15 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
16 var.log_root = "/var/log/lighttpd"
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
17 var.server_root = "/var/www"
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
18 var.state_dir = "/var/run"
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
19 var.home_dir = "/var/lib/lighttpd"
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
20 var.conf_dir = "/etc/lighttpd"
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
21
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
22 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
23 ## run the server chrooted.
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
24 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
25 ## This requires root permissions during startup.
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
26 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
27 ## If you run Chrooted set the the variables to directories relative to
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
28 ## the chroot dir.
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
29 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
30 ## example chroot configuration:
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
31 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
32 #var.log_root = "/logs"
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
33 #var.server_root = "/"
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
34 #var.state_dir = "/run"
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
35 #var.home_dir = "/lib/lighttpd"
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
36 #var.vhosts_dir = "/vhosts"
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
37 #var.conf_dir = "/etc"
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
38 #
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
39 #server.chroot = "/srv/www"
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
40
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
41 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
42 ## Some additional variables to make the configuration easier
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
43 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
44
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
45 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
46 ## Base directory for all virtual hosts
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
47 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
48 ## used in:
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
49 ## conf.d/evhost.conf
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
50 ## conf.d/simple_vhost.conf
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
51 ## vhosts.d/vhosts.template
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
52 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
53 var.vhosts_dir = server_root + "/vhosts"
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
54
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
55 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
56 ## Cache for mod_compress
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
57 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
58 ## used in:
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
59 ## conf.d/compress.conf
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
60 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
61 var.cache_dir = "/var/cache/lighttpd"
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
62
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
63 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
64 ## Base directory for sockets.
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
65 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
66 ## used in:
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
67 ## conf.d/fastcgi.conf
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
68 ## conf.d/scgi.conf
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
69 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
70 var.socket_dir = home_dir + "/sockets"
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
71
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
72 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
73 #######################################################################
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
74
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
75 #######################################################################
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
76 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
77 ## Load the modules.
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
78 include "modules.conf"
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
79
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
80 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
81 #######################################################################
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
82
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
83 #######################################################################
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
84 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
85 ## Basic Configuration
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
86 ## ---------------------
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
87 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
88 server.port = 80
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
89
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
90 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
91 ## Use IPv6?
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
92 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
93 server.use-ipv6 = "enable"
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
94
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
95 ##
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
96 ## bind to a specific IP
b003235abe75 Add lighttpd configuration files.
John "Elwin" Edwards
parents:
diff changeset
97 ##