source: client/shared/lib/httpd/lighttpd.conf @ 1d1e06d

Last change on this file since 1d1e06d was 4ee02ce, checked in by ramon <ramongomez@…>, 13 years ago

Versión 1.0.4, #531: Corregir permisos de ficheors.

git-svn-id: https://opengnsys.es/svn/branches/version1.0@3161 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 4.9 KB
RevLine 
[3f73876]1# Debian lighttpd configuration file
2#
3
4############ Options you really have to take care of ####################
5
6## modules to load
7# mod_access, mod_accesslog and mod_alias are loaded by default
8# all other module should only be loaded if neccesary
9# - saves some time
10# - saves memory
11
12server.modules              = (
13            "mod_access",
14            "mod_alias",
15            "mod_accesslog",
16            "mod_compress",
17#           "mod_rewrite",
18#           "mod_redirect",
19#           "mod_evhost",
20#           "mod_usertrack",
21#           "mod_rrdtool",
22#           "mod_webdav",
23#           "mod_expire",
24#           "mod_flv_streaming",
25#           "mod_evasive"
26)
27
28## a static document-root, for virtual-hosting take look at the
29## server.virtual-* options
30server.document-root       = "/var/www/"
31
32## where to upload files to, purged daily.
33server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
34
35## where to send error-messages to
36server.errorlog            = "/var/log/lighttpd/error.log"
37
38## files to check for if .../ is requested
39index-file.names           = ( "index.php", "index.html",
40                               "index.htm", "default.htm",
41                               "index.lighttpd.html" )
42
43
44## Use the "Content-Type" extended attribute to obtain mime type if possible
45# mimetype.use-xattr = "enable"
46
47#### accesslog module
48accesslog.filename         = "/var/log/lighttpd/access.log"
49
50## deny access the file-extensions
51#
52# ~    is for backupfiles from vi, emacs, joe, ...
53# .inc is often used for code includes which should in general not be part
54#      of the document-root
55url.access-deny            = ( "~", ".inc" )
56
57##
58# which extensions should not be handle via static-file transfer
59#
60# .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
61static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
62
63
64######### Options that are good to be but not neccesary to be changed #######
65
66## Use ipv6 only if available. (disabled for while, check #560837)
67#include_shell "/usr/share/lighttpd/use-ipv6.pl"
68
69## bind to port (default: 80)
70# server.port               = 81
71
72## bind to localhost only (default: all interfaces)
73## server.bind                = "localhost"
74
75## error-handler for status 404
76#server.error-handler-404  = "/error-handler.html"
77#server.error-handler-404  = "/error-handler.php"
78
79## to help the rc.scripts
80server.pid-file            = "/var/run/lighttpd.pid"
81
82##
83## Format: <errorfile-prefix><status>.html
84## -> ..../status-404.html for 'File not found'
85#server.errorfile-prefix    = "/var/www/"
86
87## virtual directory listings
88dir-listing.encoding        = "utf-8"
89server.dir-listing          = "enable"
90
91## send unhandled HTTP-header headers to error-log
92#debug.dump-unknown-headers  = "enable"
93
94### only root can use these options
95#
96# chroot() to directory (default: no chroot() )
97#server.chroot            = "/"
98
99## change uid to <uid> (default: don't care)
100server.username            = "www-data"
101
102## change uid to <uid> (default: don't care)
103server.groupname           = "www-data"
104
105#### compress module
106compress.cache-dir          = "/var/cache/lighttpd/compress/"
107compress.filetype           = ("text/plain", "text/html", "application/x-javascript", "text/css")
108
109
110#### url handling modules (rewrite, redirect, access)
111# url.rewrite                 = ( "^/$"             => "/server-status" )
112# url.redirect                = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
113
114#
115# define a pattern for the host url finding
116# %% => % sign
117# %0 => domain name + tld
118# %1 => tld
119# %2 => domain name without tld
120# %3 => subdomain 1 name
121# %4 => subdomain 2 name
122#
123# evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/"
124
125#### expire module
126# expire.url                  = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
127
128#### rrdtool
129# rrdtool.binary = "/usr/bin/rrdtool"
130# rrdtool.db-name = "/var/www/lighttpd.rrd"
131
132#### variable usage:
133## variable name without "." is auto prefixed by "var." and becomes "var.bar"
134#bar = 1
135#var.mystring = "foo"
136
137## integer add
138#bar += 1
139## string concat, with integer cast as string, result: "www.foo1.com"
140#server.name = "www." + mystring + var.bar + ".com"
141## array merge
142#index-file.names = (foo + ".php") + index-file.names
143#index-file.names += (foo + ".php")
144
145
146#### external configuration files
147## mimetype mapping
148include_shell "/usr/share/lighttpd/create-mime.assign.pl"
149
150## load enabled configuration files,
151## read /etc/lighttpd/conf-available/README first
152include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
153
154#### handle Debian Policy Manual, Section 11.5. urls
155## by default allow them only from localhost
156## (This must come last due to #445459)
157## Note: =~ "127.0.0.1" works with ipv6 enabled, whereas == "127.0.0.1" doesn't
158#$HTTP["remoteip"] =~ "127.0.0.1" {
159#       alias.url += (
160#               "/doc/" => "/usr/share/doc/",
161#               "/images/" => "/usr/share/images/"
162#       )
163#       $HTTP["url"] =~ "^/doc/|^/images/" {
164#               dir-listing.activate = "enable"
165#       }
166#}
167
Note: See TracBrowser for help on using the repository browser.