tml <[EMAIL PROTECTED]> writes:

> I have the following rewrite rules in apache.conf to rewrite urls
> which dont have have static or error in their path to TG which is
> running localhost:8080. This works very well:
>
>         <IfModule mod_rewrite.c>
>                 RewriteEngine On
>                 RewriteCond %{REQUEST_URI} !^/(static|error)
>                 RewriteRule ^(.*)$ http://localhost:8080$1 [P,L]
>                 ProxyPassReverse / http://localhost:8080/
>         </IfModule>
>
> However, now i'm trying to do something like this:
>
> someuser.domain.com should be redirected to 
> http://localhost:8080/user/<userid>
>
> Does anyone know how to write such a rewrite rule which doesn't break
> the above setup?

I'm sorry but this has nothing to do with TurboGears besides the fact
that you're running it...  It is an apache configuration issue.  From
Apache's docs for mod_rewrite have an example of such thing.

-- 
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to