[Catalyst] Modifying the base url
Jonathan Rockway
jon at jrock.us
Fri Dec 15 16:37:00 GMT 2006
Julien GILLES wrote:
> I can of course update all controllers, bu I need something configurable (in
> myapp.yml it would be fine).
I think this is a webserver issue. `Alias /baz /path/to/myapp.fcgi/`
should be sufficient for Apache. You might also want to try:
base: /baz
in your myapp.yml. I don't know what effect this has on handling
requests (in the dev server), but it will change what uri_for thinks the
base of your application is. Use with care.
--
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,
";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup;
More information about the Catalyst
mailing list