On 10/10/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:
>
> "kerinin" <[EMAIL PROTECTED]> writes:
>
> > I'm proxying it:
>
> This looks more like mod_rewrite than mod_proxy to me...
>
> > RewriteEngine on
>
> This is for mod_rewrite only.
>
> > RewriteMap escape int:escape
> > #RewriteRule ^/static/(.*)
> > /var/www/bcstudio/bcstudio/static/${escape:$1} [L]
> >
> > RewriteCond %{REQUEST_URI} !autostart
> > RewriteRule ^(.*) http://bcmail.dnsalias.net:8080/${escape:$1}
> > [P]
>
> If you wanted mod_proxy:
>
> ProxyPass / http://localhost:8080/
> ProxyPassReverse / http://localhost:8080/
>
> This will proxy all accesses to "/" to localhost:8080. This is documented at
> the wiki.
Using a rewrite rule with [P] at the end is the equivilent of using
the ProxyPass stuff. It just means that you can set it up via
.htaccess and it also makes it easier to allow Apache to serve the
/static tree, e.g:
RewriteEngine On
RewriteRule ^static/(.*) /path/to/static/$1 [L]
RewriteRule ^(.*) http://example.com:8080/$1 [P]
Lee
--
Lee McFadden
blog: http://www.splee.co.uk
work: http://fireflisystems.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---