############################################################################### # mod_fastcgi.conf # include'd by lighttpd.conf. # $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/conf/mod_fastcgi.conf,v 1.2 2005/08/27 12:36:13 ka0ttic Exp $ ############################################################################### fastcgi.debug = 1 server.modules += ("mod_fastcgi") fastcgi.server = ( ".php" => (( "socket" => "/tmp/php-fastcgi-" + PID + ".socket", "bin-path" => "/usr/bin/php-cgi", "broke-scriptfilename" => "enable", "bin-environment" => ( "db_server" => "mythtv.lan", "db_name" => "mythconverg", "db_login" => "mythtv", "db_password" => "mythtv" ) )) # ( "localhost" => # ( # "host" => "127.0.0.1", # "port" => 1026, # "bin-path" => "/usr/bin/php-cgi" # ) # ) ) #$HTTP["host"] =~ "^blog.grantgoodyear.org" { # server.document-root = "/var/www/localhost/typo/public/" # server.error-handler-404 = "/dispatch.fcgi" # server.indexfiles = ("dispatch.fcgi") # server.errorlog = "/var/log/lighttpd/lighttpd_error.log" # url.rewrite = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" ) # fastcgi.server = ( # ".fcgi" => ( # "localhost" => ( # "socket" => "/tmp/lighttpd-typo-fcgi.socket", # "bin-path" => "/var/www/localhost/typo/public/dispatch.fcgi", # "bin-environment" => ( "RAILS_ENV" => "production" ), # "max-load-per-proc" => 25, # "min-procs" => 1, # "max-procs" => 1, # "idle-timeout" => 60, # ) # ) # ) #} $HTTP["host"] =~ "^mythtv.grantgoodyear.org" { server.document-root = "/var/www/localhost/htdocs/mythweb" url.rewrite-once = ( "^/mythweb(/tv.*|/music.*|/video.*|/weather.*|/settings.*|/status.*|/backend_log.*)$" => "/mythweb.php/$1" ) } $HTTP["host"] =~ "^blog.grantgoodyear.org" { server.document-root = "/var/www/www.grantgoodyear.org/htdocs/serendipity/" #url.access-deny ( ".tpl", ".inc.php", ".sql", ".db" ) server.errorlog = "/var/log/lighttpd/lighttpd_error.log" url.rewrite-once = ( "^/archives([/A-Za-z0-9]+)\.html" => "/index.php?url=/archives/$1.html", "^/([0-9]+)[_\-][0-9a-z_\-]*\.html" => "/index.php?url=$1-article.html", "^/feeds/(.*)" => "/index.php?url=/feeds/$1", "^/unsubscribe/(.*)/([0-9]+)" => "/index.php?url=/unsubscribe/$1/$2", "^/approve/(.*)/(.*)/([0-9]+)" => "/index.php?url=approve/$1/$2/$3", "^/delete/(.*)/(.*)/([0-9]+)" => "/index.php?url=delete/$1/$2/$3", "^/(admin|entries)(/.+)?" => "/index.php?url=admin/", "^/archive$" => "/index.php?url=/archive", "^/categories/([0-9]+)" => "/index.php?url=/categories/$1", "^/plugin/(.*)" => "/index.php?url=plugin/$1", "^/search/(.*)" => "/index.php?url=/search/$1", "^/authors/([0-9]+)" => "/index.php?url=/authors/$1", "^/index\.html?" => "/index.php?url=index.html", "^/htmlarea/(.*)" => "/htmlarea/$1", "/(.*\.html?)" => "/index.php?url=/$1", "^/(serendipity\.css|serendipity_admin\.css)" => "/index.php?url=/$1", "^/(index|atom|rss|b2rss|b2rdf).(rss|rdf|rss2|xml)$" => "/rss.php?file=$1&ext=$2", ) } # vim: set ft=conf foldmethod=marker et :