finally just solved big problems I had with symfony – to get it running on lighttpd 1.5 with fcgi-sockets. The resulting lighttpd settings are a pure pain in the … – If you have a better solution for this, let me know. I’m pretty unhappy with these kind of hacks…
$HTTP["host"] == "###TypeYourUrlHere###" {
var.site-root = "/var/www/###TypeYourUrlHere###/web/"
accesslog.filename = var.site-root + "../log/access.log"
alias.url = (
"/" => var.site-root,
)
# from: http://trac.symfony-project.com/wiki/lighttpd
url.rewrite-once = (
"^/(.*\..+(?!html))$" => "$0",
"^/(.*)\.(.*)" => "$0",
"^/([^.]+)$" => "/index.php/$1",
"^/$" => "/index.php"
)
# Handling dynamic content
$HTTP["url"] =~ "^/(?!js|css|images)" {
proxy-core.rewrite-request = (
"_pathinfo" => ( "^(/.*)" => "/$1" ),
"_scriptname" => ( "^/(.*)" => "/$1" )
)
}
# somthing is wrong here. this essential to get
# ajax calls /like/this/url.html working
# this is a really dirty hack
server.error-handler-404 = "index.php",
$HTTP["url"] =~ "backend\.php" {
server.error-handler-404 = "backend.php",
}
}
This entry was posted on Monday, March 24th, 2008 at 4:24 pm and is filed under AJAX, Symfony. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.