Actually yes, it is running here! My poblem was that we are generating the lighttpd.conf out of another file and certain chars had to be escaped. As the original post and my post are incomplete (just showing a part of the lighttpd.conf ) and I post you my complete configuration:
server.document-root = "/general/wwwroot"
server.username = "www"
server.groupname = "www"
server.modules = (
"mod_access",
"mod_accesslog",
"mod_fastcgi",
"mod_rewrite",
"mod_redirect",
"mod_setenv"
)
$HTTP["url"] =~ "\.html" { setenv.add-response-header = ( "Cache-Control" => "no-cache" ) }
$HTTP["host"] =~ "myDomain.test.com+$" {
server.document-root = "/path/to/laravel/public"
accesslog.filename = "/var/log/lighttpd-access.log"
alias.url = ()
url.redirect = ()
url.rewrite-if-not-file = (
"^/(css|img|js)/.*\.(jpg|jpeg|gif|png|swf|avi|mpg|mpeg|mp3|flv|ico|css|js)$" => "$0",
"^/(favicon\.ico|robots\.txt|sitemap\.xml)$" => "$0",
"^/[^\?]*(\?.*)?$" => "index.php/$1"
)
}
fastcgi.server = ( "/fastcgi/monitor.fcgi" => ((
"bin-path" => "/usr/local/bin/monitor_cgi",
"max-procs" => 1,
"socket" => "/tmp/monitor_fcgi.socket",
"check-local" => "disable"
)))
fastcgi.server +=( ".php" => ( "localhost" => (
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket",
)))
fastcgi.server +=( ".fcgi" => ( "localhost" => (
"bin-path" => "/usr/local/wwwbin/uigateway.fcgi",
"min-procs" => 4,
"max-procs" => 16,
"socket" => "/tmp/light_fcgi.socket",
"check-local" => "disable",
"kill-signal" => 9,
"idle-timeout" => 30,
)))
fastcgi.server += ( ".sh" => ( "localhost" => (
"bin-path" => "/usr/local/wwwbin/bash.fcgi",
"min-procs" => 4,
"max-procs" => 16,
"socket" => "/tmp/light_sh.socket",
"check-local" => "disable",
"kill-signal" => 9,
"idle-timeout" => 30
)))
server.error-handler-404 = "/404.php"
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
fastcgi.debug = 1
server.errorlog = "/var/log/lighttpd/error.log"
accesslog.filename = "/var/log/lighttpd/access.log"
url.access-deny = ( "~", ".inc" )
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm" )
mimetype.assign = (
".pdf" => "application/pdf",
".sig" => "application/pgp-signature",
".spl" => "application/futuresplash",
".class" => "application/octet-stream",
".ps" => "application/postscript",
".torrent" => "application/x-bittorrent",
".dvi" => "application/x-dvi",
".gz" => "application/x-gzip",
".pac" => "application/x-ns-proxy-autoconfig",
".swf" => "application/x-shockwave-flash",
".tar.gz" => "application/x-tgz",
".tgz" => "application/x-tgz",
".tar" => "application/x-tar",
".zip" => "application/zip",
".mp3" => "audio/mpeg",
".m3u" => "audio/x-mpegurl",
".wma" => "audio/x-ms-wma",
".wax" => "audio/x-ms-wax",
".ogg" => "application/ogg",
".wav" => "audio/x-wav",
".gif" => "image/gif",
".jar" => "application/x-java-archive",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
".xbm" => "image/x-xbitmap",
".xpm" => "image/x-xpixmap",
".xwd" => "image/x-xwindowdump",
".css" => "text/css",
".html" => "text/html",
".htm" => "text/html",
".js" => "text/javascript",
".asc" => "text/plain",
".c" => "text/plain",
".cpp" => "text/plain",
".log" => "text/plain",
".conf" => "text/plain",
".text" => "text/plain",
".txt" => "text/plain",
".dtd" => "text/xml",
".xml" => "text/xml",
".mpeg" => "video/mpeg",
".mpg" => "video/mpeg",
".mov" => "video/quicktime",
".qt" => "video/quicktime",
".avi" => "video/x-msvideo",
".asf" => "video/x-ms-asf",
".asx" => "video/x-ms-asf",
".wmv" => "video/x-ms-wmv",
".bz2" => "application/x-bzip",
".tbz" => "application/x-bzip-compressed-tar",
".tar.bz2" => "application/x-bzip-compressed-tar",
# default mime type
"" => "application/octet-stream"
)
I hope it helps you.
Cheers