"venomous" <[EMAIL PROTECTED]> writes:

> Hi all,
> I'm finishing my first turbogears app, but i want rewrite subdomain
> request to a specific function.
> So i have some function like blog, gallery that i can call through
> http://mysite.com/blog or http://mysite.com/gallery, how i can rewrite
> http://blog.mysite.com/**action to http://mysite.com/blog/**action ?
> I did the setup of turbogears using apache and mod_proxy, but i'm only
> able to rewrite the url to the root controller, so now i don't know if
> is possible to do what i'm asking directly with cherrypy, using dns
> and apache wildcards and manage the request uri through a function, or
> is possible to setup apache with mod_rewrite. Actually i tried with
> mod_rewrite but with no luck.
> Hope i'm not offtopic, any suggestion is really welcome.

What webserver are you using?  There are some out there that have a
"mod_rewrite" (though Apache is the most common). 

If you're using Apache, it's docs contains examples on doing things very
similar to what you're wanting. 

-- 
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