Following the instructions for lighttpd deployment:
http://wiki.catalystframework.org/wiki/deployment/lighttpd_fastcgi

As well as trying the static deployment here:
http://search.cpan.org/~hkclark/Catalyst-Manual-5.9006/lib/Catalyst/Manual/Deployment/lighttpd/FastCGI.pod

I noticed that styles and images on non-root pages were being incorrectly
parsed in the c.uri_for method.

For example in: http://myapp.com/foo/bar
 [% c.uri_for('/css/main.css') %]

parsed to:
http://myapp.com/foo/bar/css/main.css (instead of
http://myapp.com/css/main.css)

Upon further inspection I noticed that the problem lied in $c->req->base not
returning the absolute path but instead it returned the relative path.

[% c.req.base %] parsed to: http://myapp.com/foo/bar/ (instead of
http://myapp.com <http://myapp.com/css/main.css>)

This problem does not occur when using the standalond deployment:
CATALYST_ENGINE='HTTP::Prefork' script/yourapp_server.pl

Reverting to Catalyst 5.8 fixed this problem but unfortunately there are
other problems. Also not that
myapp_server.pl works perfectly and this only happens when myapp_fastcgi is
invoked.

Any else experiencing these problems?

Regards,
Jav
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to