Wildcard DNS with zope?
Hi Does anyone know how to do wildcard DNS/subdomains with Zope? I want to be able to have something like anydomain.mydomain.com where anydomain is anything the user enters at anytime and doesn't demand a DNS entry or directory is set-up. I'd like to create a service like wasarrested.com but less rude :-) (i.e. try http://www.zope.developer.wasarrested.com/hack ) - it takes the variables from the subdomain and generates an article. Once set-up I'd post the code on zope.org Cheers, Duane
Hi Duane, per default, zope does not care about the hostname in the browsers request. You set up a wildcard domain as usual, pointing all at your zope box, of course. The Hostname will be in request.SERVER_URL (with http:// ...) And you can call a script in your site or different ones from index_html. request=context.REQUEST keywords=request.SERVER_URL.replace('http://','').replace('/','').split('.') return context.ArticlePageTemplate(keywords) HTH Tino Wildenhain --On Freitag, 4. Oktober 2002 09:48 +0100 Duane Raymond <Duane.Raymond@Virgin.net> wrote:
Hi
Does anyone know how to do wildcard DNS/subdomains with Zope? I want to be able to have something like anydomain.mydomain.com where anydomain is anything the user enters at anytime and doesn't demand a DNS entry or directory is set-up.
I'd like to create a service like wasarrested.com but less rude :-) (i.e. try http://www.zope.developer.wasarrested.com/hack ) - it takes the variables from the subdomain and generates an article.
Once set-up I'd post the code on zope.org
Cheers,
Duane
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
by default Virtual Host Monster does this. <--> george donnelly - http://zettai.net/ - "We Love Newbies" :) Zope Hosting - Dynamic Website Design - Search Engine Promotion
From: "Duane Raymond" <Duane.Raymond@Virgin.net>
Does anyone know how to do wildcard DNS/subdomains with Zope? I want to be able to have something like anydomain.mydomain.com where anydomain is anything the user enters at anytime and doesn't demand a DNS entry or directory is set-up.
participants (3)
-
Duane Raymond -
george donnelly -
Tino Wildenhain