[Catalyst] Providing a REST API from behind Apache/FastCGI?

Toby Corkindale toby at dryft.net
Mon Nov 11 00:44:50 GMT 2013


On 9 November 2013 07:54, Dan Lowe <dan at tangledhelix.com> wrote:
> When I move this from dev to test, which means it goes behind mod_fastcgi, it stops working. Every request gets back 401 Unauthorized. As far as I can tell, the Authorization header is not being passed through to Catalyst.
>
> Has anyone had this problem and knows of some solution? I'm out of ideas at this point...

I know this isn't very helpful, but have you tried switching to using
apache (or preferably nginx) to reverse-proxy through to starman,
rather than using FastCGI? I think that's the current "best practice"
and would prove more reliable. At the very least, it provides more
ways to inspect and debug what is going on. If you're out of ideas, it
might be quicker to just give up on fastcgi and move on.



More information about the Catalyst mailing list