Add tor package
[openwrt.git] / package / lighttpd / files / lighttpd.conf
1 # lighttpd configuration file
2 #
3 ## modules to load
4 # all other module should only be loaded if really neccesary
5 # - saves some time
6 # - saves memory
7 #server.modules = (
8 # "mod_rewrite",
9 # "mod_redirect",
10 # "mod_auth",
11 # "mod_status",
12 # "mod_simple_vhost",
13 # "mod_evhost",
14 # "mod_cgi",
15 # "mod_compress",
16 # "mod_ssi",
17 # "mod_usertrack"
18 #)
19
20 ## a static document-root, for virtual-hosting take look at the
21 ## server.virtual-* options
22 server.document-root = "/www/"
23
24 ## where to send error-messages to
25 # server.errorlog = "/var/log/lighttpd/error.log"
26
27 # files to check for if .../ is requested
28 server.indexfiles = ( "index.html", "default.html",
29 "index.htm", "default.htm" )
30
31 # mimetype mapping
32 mimetype.assign = (
33 ".pdf" => "application/pdf",
34 ".class" => "application/octet-stream",
35 ".pac" => "application/x-ns-proxy-autoconfig",
36 ".swf" => "application/x-shockwave-flash",
37 ".wav" => "audio/x-wav",
38 ".gif" => "image/gif",
39 ".jpg" => "image/jpeg",
40 ".jpeg" => "image/jpeg",
41 ".png" => "image/png",
42 ".css" => "text/css",
43 ".html" => "text/html",
44 ".htm" => "text/html",
45 ".js" => "text/javascript",
46 ".txt" => "text/plain",
47 ".dtd" => "text/xml",
48 ".xml" => "text/xml"
49 )
50
51 # Use the "Content-Type" extended attribute to obtain mime type if possible
52 # mimetypes.use-xattr = "enable"
53
54
55 ######### Options that are good to be but not neccesary to be changed #######
56
57 ## bind to port (default: 80)
58 #server.port = 81
59
60 ## bind to localhost (default: all interfaces)
61 #server.bind = "grisu.home.kneschke.de"
62
63 ## error-handler for status 404
64 #server.error-handler-404 = "/error-handler.html"
65 #server.error-handler-404 = "/error-handler.php"
66
67
68 ###### virtual hosts
69 ##
70 ## If you want name-based virtual hosting add the next three settings and load
71 ## mod_simple_vhost
72 ##
73 ## document-root =
74 ## virtual-server-root + virtual-server-default-host + virtual-server-docroot or
75 ## virtual-server-root + http-host + virtual-server-docroot
76 ##
77 #simple-vhost.server-root = "/home/weigon/wwwroot/servers/"
78 #simple-vhost.default-host = "grisu.home.kneschke.de"
79 #simple-vhost.document-root = "/pages/"
80
81
82 ##
83 ## Format: <errorfile-prefix><status>.html
84 ## -> ..../status-404.html for 'File not found'
85 #server.errorfile-prefix = "/www/error-"
86
87 ## virtual directory listings
88 #server.dir-listing = "enable"
89
90 ## send unhandled HTTP-header headers to error-log
91 #debug.dump-unknown-headers = "enable"
92
93 ### only root can use these options
94 #
95 # chroot() to directory (default: no chroot() )
96 #server.chroot = "/"
97
98 ## change uid to <uid> (default: don't care)
99 #server.username = "nobody"
100
101 ## change uid to <uid> (default: don't care)
102 #server.groupname = "nobody"
103
104 ## to help the rc.script
105 #server.pid-file = "/var/run/lighttpd.pid"
106
107 #### compress module
108 #compress.cache-dir = "/dev/null/"
109 #compress.filetype = ("text/plain", "text/html")
110
111 #### fastcgi module
112 ## read fastcgi.txt for more info
113 #fastcgi.server = ( ".php" =>
114 # ( "grisu" =>
115 # (
116 # "host" => "192.168.2.10",
117 # "port" => 1026
118 # )
119 # )
120 # )
121
122 #### CGI module
123 #cgi.assign = ( ".pl" => "/usr/bin/perl",
124 # ".cgi" => "/usr/bin/perl" )
125 #
126
127 #### SSL engine
128 #ssl.engine = "enable"
129 #ssl.pemfile = "server.pem"
130
131 #### status module
132 # status.status-url = "/server-status"
133 # status.config-url = "/server-config"
134
135 #### auth module
136 ## read authentification.txt for more info
137 # auth.backend = "plain"
138 # auth.backend.plain.userfile = "lighttpd.user"
139 # auth.backend.plain.groupfile = "lighttpd.group"
140
141 # auth.require = ( "/server-status" =>
142 # (
143 # "method" => "digest",
144 # "realm" => "download archiv",
145 # "require" => "group=www|user=jan|host=192.168.2.10"
146 # ),
147 # "/server-info" =>
148 # (
149 # "method" => "digest",
150 # "realm" => "download archiv",
151 # "require" => "group=www|user=jan|host=192.168.2.10"
152 # )
153 # )
154
155 #### url handling modules (rewrite, redirect, access)
156 # url.rewrite = ( "^/$" => "/server-status" )
157 # url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
158
159 #
160 # define a pattern for the host url finding
161 # %% => % sign
162 # %0 => domain name + tld
163 # %1 => tld
164 # %2 => domain name without tld
165 # %3 => subdomain 1 name
166 # %4 => subdomain 2 name
167 #
168 # evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/"
169
170 #### expire module
171 # expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
172
173 #### ssi
174 # ssi.extension = ( ".shtml" )
175
This page took 0.04872 seconds and 5 git commands to generate.