[Catalyst] forward not working with Apache web server
Matt S Trout
dbix-class at trout.me.uk
Thu Feb 7 07:16:58 GMT 2008
On Wed, Feb 06, 2008 at 09:55:34PM -0500, Berk Birand wrote:
> Hello everyone,
>
> I have been using Catalyst for about 2 months, and I thought I had a
> good grasp of how things worked. Yet I am facing a problem right now and
> I'm clueless as to how to deal with it.
>
> I use the built-in server to do my development, and then use Apache as
> the main server. For this specific problem, the built-in server behaves
> as expected, but Apache doesn't. I have some code where the Controller
> first uses "$c->forward()" to redirect to another action, and then uses
> "$c->response->redirect" to redirect the page flow.
>
> Although the outputs from the "Action trace" suggests that the forward
> does happen, when I add print statements, they are definitely not
> printed with Apache. The final redirection works in both occasions.
Go for $c->log so it ends up in the error log.
print statements without a provided filehandle are likely to go down the
pipe to the client instead.
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
More information about the Catalyst
mailing list