Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## modules to load
- # at least mod_access and mod_accesslog should be loaded
- # all other module should only be loaded if really neccesary
- # - saves some time
- # - 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" )
- ## a static document-root, for virtual-hosting take look at the
- ## server.virtual-* options
- server.document-root = "/home/langenberg/public_html"
- ## where to send error-messages to
- server.errorlog = "/var/log/lighttpd/error.log"
- # files to check for if .../ is requested
- server.indexfiles = ( "index.php", "index.html",
- "index.htm", "default.htm" )
- # mimetype mapping
- mimetype.assign = (
- ".pdf" => "application/pdf",
- ".sig" => "application/pgp-signature",
- ".spl" => "application/futuresplash",
- ".class" => "application/octet-stream",
- ".ps" => "application/postscript",
- ".torrent" => "application/x-bittorrent",
- ".dvi" => "application/x-dvi",
- ".gz" => "application/x-gzip",
- ".pac" => "application/x-ns-proxy-autoconfig",
- ".swf" => "application/x-shockwave-flash",
- ".tar.gz" => "application/x-tgz",
- ".tgz" => "application/x-tgz",
- ".tar" => "application/x-tar",
- ".zip" => "application/zip",
- ".mp3" => "audio/mpeg",
- ".m3u" => "audio/x-mpegurl",
- ".wma" => "audio/x-ms-wma",
- ".wax" => "audio/x-ms-wax",
- ".ogg" => "application/ogg",
- ".wav" => "audio/x-wav",
- ".gif" => "image/gif",
- ".jpg" => "image/jpeg",
- ".jpeg" => "image/jpeg",
- ".png" => "image/png",
- ".xbm" => "image/x-xbitmap",
- ".xpm" => "image/x-xpixmap",
- ".xwd" => "image/x-xwindowdump",
- ".css" => "text/css",
- ".html" => "text/html",
- ".htm" => "text/html",
- ".js" => "text/javascript",
- ".asc" => "text/plain",
- ".c" => "text/plain",
- ".cpp" => "text/plain",
- ".log" => "text/plain",
- ".conf" => "text/plain",
- ".text" => "text/plain",
- ".txt" => "text/plain",
- ".dtd" => "text/xml",
- ".xml" => "text/xml",
- ".mpeg" => "video/mpeg",
- ".mpg" => "video/mpeg",
- ".mov" => "video/quicktime",
- ".qt" => "video/quicktime",
- ".avi" => "video/x-msvideo",
- ".asf" => "video/x-ms-asf",
- ".asx" => "video/x-ms-asf",
- ".wmv" => "video/x-ms-wmv",
- ".bz2" => "application/x-bzip",
- ".tbz" => "application/x-bzip-compressed-tar",
- ".tar.bz2" => "application/x-bzip-compressed-tar"
- )
- #### accesslog module
- accesslog.filename = "/var/log/lighttpd/access.log"
- ## deny access the file-extensions
- #
- # ~ is for backupfiles from vi, emacs, joe, ...
- # .inc is often used for code includes which should in general not be part
- # of the document-root
- url.access-deny = ( "~", ".inc" )
- $HTTP["url"] =~ "\.pdf$" {
- server.range-requests = "disable"
- }
- ## Enable debugging
- #
- #debug.log-request-header = "enable"
- #debug.log-response-header = "enable"
- #debug.log-request-handling = "enable"
- #debug.log-file-not-found = "enable"
- ## change uid to <uid> (default: don't care)
- server.username = "lighttpd"
- ## change uid to <uid> (default: don't care)
- server.groupname = "lighttpd"
- #### status module
- status.status-url = "/server-status"
- status.config-url = "/server-config"
- auth.backend = "htpasswd"
- auth.backend.htpasswd.userfile = "/var/lib/trac/igu_project/htpasswd.htaccess"
- ## virtual directory listings
- $HTTP["url"] =~ "^/file" {
- server.dir-listing = "enable"
- }
- auth.require = ("/trac/login" =>
- ("method" => "basic",
- "realm" => "IGU Game Project",
- "require" => "valid-user"))
- fastcgi.server = ("/trac" =>
- ("trac" =>
- ("socket" => "/tmp/trac-fastcgi.sock",
- "bin-path" => "/var/www/localhost/cgi-bin/trac.fcgi",
- "check-local" => "disable",
- "bin-environment" =>
- ("TRAC_ENV" => "/var/lib/trac/igu_project")
- )
- ),
- ".php" =>
- ( "localhost" =>
- (
- "socket" => "/tmp/php-fastcgi.socket",
- "bin-path" => "/usr/bin/php-cgi"
- )
- )
- )
- $HTTP["url"] =~ "^/blog/" {
- server.document-root = "/home/langenberg/rails/typo/public/"
- server.indexfiles = ( "index.php", "index.html",)
- url.access-deny = ( "~", ".inc" )
- server.error-handler-404 = "blog/dispatch.fcgi"
- fastcgi.server = ( ".fcgi" =>
- ("typo" =>
- ( "socket" => "/tmp/typo-fastcgi.socket",
- "bin-path" => "/home/langenberg/rails/typo/public/dispatch.fcgi",
- "bin-environment" => ("RAILS_ENV" => "production"),
- "min-procs" => 1,
- "max-procs" => 2
- )
- )
- )
- }
- ## This for gallery2, but isn't correctly working.
- url.rewrite = (
- "^/(.*)/Rewrite.txt$" => "/$1/Works.txt",
- "^/gallery/v/(\?.+|\ .)?$" => "/gallery/main.php?g2_view=core.ShowItem",
- "^/gallery/admin[/?]*(.*)$" => "/gallery/main.php?g2_view=core.SiteAdmin&$1",
- "^/gallery/d/([0-9]+)-([0-9]+)/([^\/]+)(\?|\ )?(.*)$" =>
- "/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=$1&g2_serialNumber=$2&$3",
- "^/gallery/v/([^?]+)/slideshow.html" =>
- "/gallery/main.php?g2_view=slideshow.Slideshow&g2_path=$1",
- "^/gallery/v/([^?]+)(\?|\ )?(.*)$" =>
- "/gallery/main.php?g2_view=core.ShowItem&g2_path=$1&$3",
- "^/gallery/c/add/([0-9]+).html" =>
- "/gallery/main.php?g2_view=comment.AddComment&g2_itemId=$1",
- "^/gallery/c/view/([0-9]+).html" =>
- "/gallery/main.php?g2_view=comment.ShowAllComments&g2_itemId=$1",
- "^/gallery/p/(.+)" =>
- "/gallery/main.php?g2_controller=permalinks.Redirect&g2_filename=$1"
- )
Add Comment
Please, Sign In to add comment