[Catalyst] catalyst request path and apache rewrites

Tomas Doran bobtfish at bobtfish.net
Tue Dec 22 18:46:03 GMT 2009


On 18 Dec 2009, at 13:38, William Wueppelmann wrote:
> I have the following rules configured for my virtual host in apache:
>
> RewriteCond %{REQUEST_URI} !^/foo/bar
> RewriteRule ^/(.*)$ /foo/bar/$1 [PT]
> Alias / /Path/To/MyApp/script/myapp_fastcgi.pl/
>
> In other words, I want a request to http://myserver/ to be rewritten  
> as /foo/bar, a request for http://myserver/baz to become /foo/bar/ 
> baz, and so forth. I want all requests going through this server to  
> automagically and quietly prepend "foo/bar/" to the request path,  
> giving access to a sub part of the application as a whole.

Someone else was trying to get this working as you wanted today, and  
was kind enough to submit a load of sets of env and request dumps and  
try out my suggestions.

There is now a patch in trunk[1] which should make things work like  
you expect in this case.

Can you have a go with that and see if it also does what you wanted?

Cheers
t0m

[1]: http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Runtime/5.80/trunk/



More information about the Catalyst mailing list