自從lighttpd更新到1.4.20後,原本跑的好好的spawn-fcgi就停住了,不曉得是否跟gslin這一篇所提的有關,反正後來只好用1.40.19的版本。
現在spawn-fcgi從lighttpd中獨立出來。試了一下,完全正常。
Release: spawn-fcgi 1.6.0
read on
現在spawn-fcgi從lighttpd中獨立出來。試了一下,完全正常。
Release: spawn-fcgi 1.6.0
cgi.fix_pathinfo = 1Lighttpd中MySQL要選。
"mod_fastcgi", 要打開。記得還要自己 touch 記錄檔。
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/tmp/php-fastcgi.sock", 這裡要改成這樣
"bin-path" => "/usr/local/bin/php-cgi" 這裡也是
)
)
)
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile ="/path/to/.htpasswd"
auth.require = ( "/要隱藏起來的地方" =>
(
"method" => "basic",
"realm" => "不要進來",
"require" => "user=xxxxx"
)
)