欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2/Agda, C++/Lisp/Haskell
Lighttpd.conf examples
来自开放百科 - 灰狐
(版本间的差异)
| 第36行: | 第36行: | ||
alias.url = ( "/cgi-bin/" => "/usr/lib/cgi-bin/", | alias.url = ( "/cgi-bin/" => "/usr/lib/cgi-bin/", | ||
"/images/" => "/var/www/images/" ) | "/images/" => "/var/www/images/" ) | ||
| + | |||
| + | fastcgi.server = ( ".php" => | ||
| + | (( "host" => "127.0.0.1", | ||
| + | "port" => 1026, | ||
| + | "bin-path" => "/usr/bin/php" | ||
| + | )) | ||
| + | ) | ||
| + | 需要 php 支持 fastcgi | ||
| + | php -v' and it should display '(cgi-fcgi)' | ||
2007年3月6日 (二) 16:24的版本
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",
".pl" => "/usr/bin/perl",
".cgi" => "/usr/bin/perl",
".sh" => "",
"/isearch" => "",
"/ifetch" => "",
"/ihtml" => "",
"/time" => "" )
alias.url = ( "/cgi-bin/" => "/usr/lib/cgi-bin/",
"/images/" => "/var/www/images/" )
fastcgi.server = ( ".php" =>
(( "host" => "127.0.0.1",
"port" => 1026,
"bin-path" => "/usr/bin/php"
))
)
需要 php 支持 fastcgi
php -v' and it should display '(cgi-fcgi)'
分享您的观点