Anexo de Lighttpd
Anexo de Lighttpd
Anexo de Lighttpd
## modules to load
# - saves memory
server.modules =(
# "mod_rewrite",
# "mod_redirect",
# "mod_alias",
"mod_access",
# "mod_cml",
# "mod_trigger_b4_dl",
# "mod_auth",
# "mod_status",
# "mod_setenv",
# "mod_fastcgi",
# "mod_proxy",
# "mod_simple_vhost",
# "mod_evhost",
# "mod_userdir",
# "mod_cgi",
# "mod_compress",
# "mod_ssi",
# "mod_usertrack",
# "mod_expire",
# "mod_secdownload",
# "mod_rrdtool",
"mod_accesslog" )
## server.virtual-* options
server.document-root = "/opt/share/www/lighttpd/"
## where to send error-messages to
server.errorlog = "/opt/var/log/lighttpd/error.log"
"index.htm", "default.htm",
"lighttpd/index.html" )
# mimetype mapping
mimetype.assign =(
#mimetype.use-xattr = "enable"
# server.tag = "lighttpd"
accesslog.filename = "/opt/var/log/lighttpd/access.log"
## deny access the file-extensions
# .inc is often used for code includes which should in general not be
part
# of the document-root
$HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"
##
server.port = 80
#server.bind = "grisu.home.kneschke.de"
## error-handler for status 404
#server.error-handler-404 = "/error-handler.html"
#server.error-handler-404 = "/error-handler.php"
server.pid-file = "/var/run/lighttpd.pid"
##
## mod_simple_vhost
##
## document-root =
## or
##
#simple-vhost.server-root = "/home/weigon/wwwroot/servers/"
#simple-vhost.default-host = "grisu.home.kneschke.de"
#simple-vhost.document-root = "/pages/"
##
## Format: <errorfile-prefix><status-code>.html
#server.errorfile-prefix =
"/home/weigon/projects/lighttpd/doc/status-"
#dir-listing.activate = "enable"
## enable debugging
#debug.log-request-header = "enable"
#debug.log-response-header = "enable"
#debug.log-request-handling = "enable"
#debug.log-file-not-found = "enable"
#server.chroot = "/"
#server.username = "nobody"
#server.groupname = "nobody"
# ( "localhost" =>
# (
# "port" => 80
# )
# )
# )
# ( "localhost" =>
# (
# "bin-environment" => (
# "PHP_FCGI_MAX_REQUESTS" =>
"4000"
# )
# )
# )
# )
#ssl.engine = "enable"
#ssl.pemfile = "server.pem"
#ssl.ca-file = "ca.crt"
#ssl.verifyclient.activate = "enable"
#ssl.verifyclient.enforce = "enable"
#ssl.verifyclient.depth =1
#status.status-url = "/server-status"
#status.config-url = "/server-config"
#auth.backend = "plain"
#auth.backend.plain.userfile = "lighttpd.user"
#auth.backend.plain.groupfile = "lighttpd.group"
#auth.backend.ldap.hostname = "localhost"
#auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
#auth.backend.ldap.filter = "(uid=$)"
# (
# ),
# "/server-config" =>
# (
# )
# )
#$HTTP["host"] =~ "^www\.(.*)" {
#}
#
# %% => % sign
# %1 => tld
#evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/"
#### ssi
#ssi.extension = ( ".shtml" )
#### rrdtool
#rrdtool.binary = "/opt/bin/rrdtool"
#rrdtool.db-name = "/var/www/lighttpd.rrd"
#### setenv
# trigger-before-download.gdbm-filename =
"/home/weigon/testbase/trigger.db"
# trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
# trigger-before-download.trigger-url = "^/trigger/"
# trigger-before-download.download-url = "^/download/"
# trigger-before-download.deny-url = "http://127.0.0.1/index.html"
# trigger-before-download.trigger-timeout = 10
## for mod_cml
# cml.extension = ".cml"
# cml.memcache-hosts = ( "127.0.0.1:11211" )
#bar = 1
#var.mystring = "foo"
## integer add
#bar += 1
## array merge
#### include
#include /etc/lighttpd/lighttpd-inc.conf
#include "lighttpd-inc.conf"
#### include_shell
#var.a=1
server.document-root = "/opt/share/www/lighttpd/”
server.errorlog = "/opt/var/log/lighttpd/error.log"
accesslog.filename = "/opt/var/log/lighttpd/access.log"
server.port = 80
Este servidor también nos permite fijarlo en una dirección IP, mostrar
errores 404 o ejecutar scripts. Una opción muy interesante es la de
hacer repositorios donde la descarga de archivos es vía http en lugar
de FTP, para conseguir esto basta con activar la opción:
#dir-listing.activate = "enable"