virtualhostfilter examples

1 view
Skip to first unread message

Tim Williams (gmail)

unread,
Oct 10, 2005, 7:03:53 AM10/10/05
to cherryp...@googlegroups.com
I'm considering Cherrypy (possibly with TurboGears) for an upcoming
project. For various reasons I need several domains to point to
different parts of a single website structure as well as to their own
"homepage" EG

http://www.mydom1.com -> root
http://www.mydom2.com -> root/mydom2/
http://www.mydom3.com -> root/mydom3/
http://www.mydom4.com -> under construction page

but also to have http://www.mydom1.com/mydom2/ etc to be vaild pages
in their own right

I would like to do this dynamically to reduce coding and complexity,
ie, I don't want to define every combination of domain & page. I
would like the code to be designed so that if domX exists on the site
then the correct page is shown, if it doesn't exist (yet) then a
generic UC or holding page is shown.

I gather I would use virtualhostfilter but are there any examples or
snippets out there that would quickstart my tests (I din't find its
use obvious from the docs) ? Or any suggestions?

TIA

Tim
Reply all
Reply to author
Forward
0 new messages