Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Debian lighttpd configuration file
- #
- ############ Options you really have to take care of ####################
- ## modules to load
- # mod_access, mod_accesslog and mod_alias are loaded by default
- # all other module should only be loaded if neccesary
- # - saves some time
- # - saves memory
- server.modules = (
- "mod_access",
- "mod_alias",
- "mod_accesslog",
- "mod_fastcgi",
- "mod_rewrite",
- "mod_redirect",
- "mod_simple_vhost",
- "mod_setenv",
- "mod_auth",
- # "mod_status",
- # "mod_evhost",
- "mod_compress",
- # "mod_usertrack",
- # "mod_rrdtool",
- # "mod_webdav",
- # "mod_expire",
- # "mod_flv_streaming",
- # "mod_evasive"
- )
- server.errorlog = "/home/vgdsoc/lighttpd/log/error.log"
- accesslog.filename = "/home/vgdsoc/lighttpd/log/access.log"
- index-file.names = ( "index.php", "index.html", "index.htm")
- url.access-deny = ( "~", ".inc" )
- ######### Options that are good to be but not neccesary to be changed #######
- ## bind to port (default: 80)
- server.port = 2102
- ## bind to localhost only (default: all interfaces)
- server.bind = "localhost"
- ## to help the rc.scripts
- server.pid-file = "/home/vgdsoc/lighttpd/run/lighttpd.pid"
- ## virtual directory listings
- dir-listing.encoding = "utf-8"
- server.dir-listing = "enable"
- server.username = "vgdsoc"
- server.groupname = "vgdsoc"
- #### compress module
- compress.cache-dir = "/home/vgdsoc/lighttpd/run/compress/"
- compress.filetype = ("text/plain", "text/html")
- include_shell "/usr/share/lighttpd/create-mime.assign.pl"
- server.document-root = "/home/vgdsoc/public_html/www"
- # The same as rewriting everything to index.php
- # Actually not - this removes the query string.
- #server.error-handler-404 = "/index.php"
- # This works:
- url.rewrite-once = (
- "public/.*" => "$0",
- "releases/.*" => "$0",
- "forums(/.*)?" => "$0",
- ".*\.(js|ico|gif|jpg|png|css)$" => "$0",
- ".*\?(.*)" => "/index.php?$1",
- "" => "/index.php"
- )
- fastcgi.server = (
- ".php" => ((
- "bin-path" => "/usr/bin/php-cgi -d memory_limit=128M -d magic_quotes_gpc=off",
- "check-local" => "disable",
- "socket" => "/home/vgdsoc/lighttpd/run/fastcgi.socket",
- "min-procs" => 1,
- "max-procs" => 1,
- "idle-timeout" => 20,
- "bin-environment" => (
- "PHP_FCGI_CHILDREN" => "4",
- "PHP_FCGI_MAX_REQUESTS" => "5000"
- ),
- ))
- )
- # New subdomain settings
- $HTTP["host"] =~ "test.domain.co.uk" {
- server.document-root = "/home/vgdsoc/public_html/test"
- }
- $HTTP["host"] =~ "old.domain.co.uk" {
- server.document-root = "/home/vgdsoc/public_html/old"
- }
- # The old testing site settings
- #$HTTP["host"] =~ "test.domain.co.uk" {
- # server.document-root = "/home/vgdsoc/public_html/test"
- # auth.backend = "htdigest"
- # auth.backend.htdigest.userfile = "/home/vgdsoc/lighttpd/passwords"
- # auth.debug = 2
- # auth.require = ( "/" =>
- # (
- # "method" => "digest",
- # "realm" => "Test site",
- # "require" => "valid-user"
- # )
- # )
- #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement