
diment at gmail
Mar 5, 2007, 1:23 AM
Post #1 of 1
(239 views)
Permalink
|
|
Lighttpd deployment problems as non root.
|
|
I've built an external test server harness as described in: http://www.catalystframework.org/calendar/2006/7, but I'm hitting some snags with lighttpd. For the following root controller code: sub index : Private { my ( $self, $c ) = @_; $c->res->redirect( $c->uri_for('/content/') ); } and the following test code: $mech->get_ok( 'http://localhost/', 'got front page ok' ); warn "URI: " . $mech->uri; With the built in server, and a lighttpd config with deployment at server root, everything is fine, and $mech->uri is http://$CATALYST_SERVER/content as it is supposed to be. However when deployed at non root as below: fastcgi . server = ( "/fastcgi/" => ( # doesn't work without the trailing slash on /fastcgi/ as well btw "FastCgiTest" => ( "socket" => "$app_home/t/test.socket", "check-local" => "disable", "bin-path" => "$app_home/script/wiab_fastcgi.pl", "min-procs" => 1, "max-procs" => 1, "idle-timeout" => 20 ) ) ) }; $mech->uri is http://$CATALYST_SERVER/fastcgi/fastcgi/content What's going on here? I've tried Catalyst::Plugin::Lighttpd as described here: http://lists.scsys.co.uk/pipermail/catalyst/2006-June/008361.html but with no luck. Cheers kd
|