Re: using redirect with a mongrel server behind apache

2009-05-20 Thread David Susco
I ended up overwriting the redirect method with this: def redirect *a r(302, '', 'Location' = 'my_vhost.net/my_app/' + R(*a).to_s) end Thoughts? Dave On Tue, May 19, 2009 at 11:05 AM, David Susco dsu...@gmail.com wrote: Within an apache vhost I'm rewriting like this:    IfModule

Re: using redirect with a mongrel server behind apache

2009-05-20 Thread Magnus Holm
It works, but it's a little weird Camping can't detect it itself. Anyway, the most important thing is that it works :-) //Magnus Holm On Wed, May 20, 2009 at 19:53, David Susco dsu...@gmail.com wrote: I ended up overwriting the redirect method with this: def redirect *a r(302, '',

Re: using redirect with a mongrel server behind apache

2009-05-19 Thread David Susco
Within an apache vhost I'm rewriting like this: IfModule mod_rewrite.c RewriteEngine On RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ http://127.0.0.1:5000/$1 [P,QSA,L] /IfModule I haven't gotten to deployment yet, so I'm not sure if this is