Hi,
I'm using lighttpd with the following settings:
fastcgi.server += (
"/" => (
"" => (
"socket" => "/tmp/fcgi.sock",
"check-local" => "disable",
)
)
)
}
In a newly generated dancer app (dancer -a test) I run:
plackup -s FCGI --listen /tmp/fcgi.sock /home/testuser/test/
test.pl
when I go to
hci.deri.ie in the browser I get the dancer start page but without any styles. It seems that the requests look good (from access.log):
10.2.19.5
hci.deri.ie - [28/Aug/2010:02:06:50 +0000] "GET / HTTP/1.1" 200 403 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.41 Safari/534.3"
10.2.19.5
hci.deri.ie - [28/Aug/2010:02:06:51 +0000] "GET /css/style.css HTTP/1.1" 404 363 "
http://hci.deri.ie/" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.41 Safari/534.3"
So it appeared to me that dancer does not serve /css/style.css appropriately - i.e. from /public/css/style.css
This is what I can see in error.log:
2010-08-28 02:06:50: (mod_fastcgi.c.2701) FastCGI-stderr: 10.2.19.5 - - [28/Aug/2010 02:06:50] "GET / HTTP/1.1" 200 391 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.41 Safari/534.3"
2010-08-28 02:06:51: (mod_fastcgi.c.2701) FastCGI-stderr: 10.2.19.5 - - [28/Aug/2010 02:06:51] "GET /css/style.css HTTP/1.1" 404 351 "
http://hci.deri.ie/" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.41 Safari/534.3"
I'm using Dancer 1.1809, FreeBSD and the newest lighttpd with fastcgi module.
Do you know why /css/style.css (and other files) are not served properly? What should I do?
Thanks in advance,
Krystian