[Trac] Re: Problem with URLs in Trac with lighttpd
Sebastian Bergmann
sb at sebastian-bergmann.de
Fri Jul 7 00:11:36 CDT 2006
Sergey A. Lipnevich wrote:
> Can you send a snippet of Lighttpd configuration, including both
> mapping for "/" and mapping for static Trac content
Attached.
--
Sebastian Bergmann http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69
-------------- next part --------------
$HTTP["host"] =~ "^(phpunit.hartes-php.de|.*phpunit.de)" {
var.localroot = "/home/sb/web/phpunit.de"
var.fcgibin = "/home/sb/bin/suphp-5.1.sh"
server.document-root = localroot + "/htdocs/"
server.errorlog = localroot + "/log/error.log"
accesslog.filename = localroot + "/log/access.log"
alias.url = (
"/chrome/common/" => "/usr/share/trac/htdocs/",
"/favicon.ico" => "/usr/share/trac/htdocs/trac.ico",
"/pocket_guide/" => "/home/sb/web/phpunit.de/htdocs/pocket_guide/",
# "" => "/usr/share/webapps/trac/0.9.5/hostroot/cgi-bin/trac.fcgi",
)
$HTTP["url"] =~ "^(/chrome/|/favicon.ico$)" {
# no fastcgi
} # end of $HTTP["url"] =~ "^(/chrome/|favicon.ico$)"
else $HTTP["url"] =~ "^/pocket_guide/" {
fastcgi.server = (
".php" =>
(( "socket" => localroot + "/tmp/php_fcgi.socket",
"bin-path" => fcgibin,
"min-procs" => 1,
"max-procs" => 10,
"bin-copy-environment" => (
"PATH", "SHELL", "USER"
)
))
)
fastcgi.map-extensions = ( ".php3" => ".php",
".php4" => ".php",
".php5" => ".php",
)
} # end of $HTTP["url"] =~ "^/pocket_guide/"
else $HTTP["url"] =~ "^/" {
fastcgi.server = ("/" =>
("trac" =>
("socket" => localroot + "/tmp/trac-fastcgi.sock",
"bin-path" => "/usr/share/webapps/trac/0.9.5/hostroot/cgi-bin/trac.fcgi",
"check-local" => "disable",
"bin-environment" =>
(
"TRAC_ENV" => "/var/svn/trac",
"TRAC_URI_ROOT" => "/"
)
)
)
)
} # end of $HTTP["url"] =~ "^/"
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/var/svn/trac/.htpasswd"
auth.require = ( "/login" =>
(
"method" => "basic",
"realm" => "PHPUnit",
"require" => "valid-user"
),
)
}
More information about the Trac
mailing list