All pastes #266501 Raw Edit

Someone

public text v1 · immutable
·published 2006-12-04 04:52 UTC
rendered paste body
###############################################################################
# Default lighttpd.conf for Gentoo.
# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/conf/lighttpd.conf,v 1.3 2005/09/01 14:22:35 ka0ttic Exp $
###############################################################################

# {{{ variables
var.basedir  = "/var/www/"
var.logdir   = "/var/log/lighttpd"
var.statedir = "/var/lib/lighttpd"
# }}}

# {{{ modules
# At the very least, mod_access and mod_accesslog should be enabled.
# All other modules should only be loaded if necessary.
# NOTE: the order of modules is important.
server.modules = (
    "mod_rewrite",
    "mod_alias",
    "mod_access",
    "mod_auth",
    "mod_redirect",
    "mod_status",
    "mod_ssi",
    "mod_compress",
    "mod_accesslog",

#    "mod_cml",
#    "mod_trigger_b4_dl",
#    "mod_setenv",
#    "mod_proxy",
#    "mod_simple_vhost",
#    "mod_evhost",
#    "mod_userdir",
#    "mod_usertrack",
#    "mod_expire",
#    "mod_secdownload",
#    "mod_rrdtool",
#    "mod_webdav",
)
# }}}

# {{{ includes
include "mime-types.conf"
include "mod_cgi.conf"
include "mod_fastcgi.conf"
# }}}

# {{{ server settings
server.username      = "lighttpd"
server.groupname     = "lighttpd"
server.document-root = var.basedir + "/phoneport"
server.pid-file      = "/var/run/lighttpd.pid"
server.errorlog      = "/var/log/lighttpd/error.log"

server.indexfiles    = ("index.php", "index.html", "index.htm", "default.htm")
server.follow-symlink = "enable"
server.event-handler = "linux-sysepoll"
server.network-backend = "writev"
server.upload-dirs = ( "/tmp" )
server.max-request-size = 2097152

# {{{ mod_ssl
# see ssl.txt
#
  $SERVER["socket"] == ":443" {
#  server.document-root = "/var/www/phoneport"
  ssl.engine    = "enable"
  ssl.pemfile   = "/etc/lighttpd/ssl/equivox.net/equivox.pem"
  server.errorlog = var.logdir + "/serror.log"
  accesslog.filename = var.logdir + "/saccess.log"
}
# {{{ mod_staticfile
  static-file.exclude-extensions = (".php", ".pl", ".cgi", ".fcgi")
# }}}

# {{{ mod_accesslog
  accesslog.filename   = var.logdir + "/access.log"
# }}}

# {{{ mod_access
# see access.txt

url.access-deny = ("~", ".inc")

# }}}

# {{{ mod_compress
# see compress.txt

 compress.cache-dir   = var.statedir + "/cache/compress"
 compress.filetype    = ("text/plain", "text/html")
# }}}