Hi This configuration works fine for me. Can you add in your configuration the following directive: "fix-root-scriptname" => "enable" ? ( http://search.cpan.org/~miyagawa/Plack-0.9945/lib/Plack/Handler/FCGI.pm#ligh... reference) If this works for you, I will update our documentation. On Sat, Aug 28, 2010 at 3:18 AM, Krystian Samp <samp.krystian@gmail.com>wrote:
Hi, I'm using lighttpd with the following settings:
$HTTP["host"] =~ "hci.deri.ie" { 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
_______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users