Lighttpd.conf examples

来自开放百科 - 灰狐
2007年2月14日 (三) 13:24Allen (讨论 | 贡献)的版本

跳转到: 导航, 搜索
server.modules = ( 
 "mod_setenv",
 "mod_access", 
 "mod_alias",
 "mod_cgi",
 "mod_accesslog" )
server.document-root       = "/var/www/html"
server.errorlog            = "/var/log/lighttpd/error.log"
server.indexfiles          = ( "index.php", "index.html", 
                               "index.htm", "default.htm" )
mimetype.assign            = (  
  ".pdf"          =>      "application/pdf",
	:
	: (omitted)
	:
  ".sig"          =>      "application/pgp-signature",
  ".asx"          =>      "video/x-ms-asf",
  ".wmv"          =>      "video/x-ms-wmv"
 )
accesslog.filename          = "/var/log/lighttpd/access.log"
url.access-deny             = ( "~", ".inc" )
server.pid-file             = "/var/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"

cgi.assign  = ( ".awk"     => "/usr/bin/awk",
				".py"      => "/usr/bin/python",
				".sh"      => "",
				"/isearch" => "",
				"/ifetch"  => "",
				"/ihtml"   => "",
				"/time"    => "" )
alias.url = ( "/cgi-bin/" => "/usr/lib/cgi-bin/",
			  "/images/"  => "/var/www/images/" )
分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱