[Catalyst] Making proxy requests cooperate with uri_for
Matt S Trout
dbix-class at trout.me.uk
Thu Nov 13 17:53:35 GMT 2008
On Mon, Oct 20, 2008 at 12:23:38PM -0700, Ashley wrote:
> This might be a simple question but I've never had to do it before,
> Googling for it is difficult, and none of the main docs seems to have
> the info.
>
> I want to run myapp_server.pl script as a proxy as if it were from a
> dir.
>
> This is easily accomplished with
>
> ProxyPass /from_dir http://localhost:8080/
> ProxyPassReverse /from_dir http://localhost:8080/
>
> The problem then is $c->uri_for("/") returns http://localhost/ when
> http://localhost/from_dir is what is really needed.
Dave Rolsky (autarch) had a proxystuff branch that handled this at one
point, but I'm unsure what happened to it.
--
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