El mié, 12-08-2009 a las 00:58 -0300, Pablo Hernan Saro escribió: > VOILA! > Of course wildcards work on cherokee. > So Mario, what I suggested should work like a charm. > Cheers > > Pablo > > On Wed, Aug 12, 2009 at 12:53 AM, Pablo Hernan Saro > <[email protected]> wrote: > Ooops! I forgot the list. Sorry... > Read below. > > > > On Wed, Aug 12, 2009 at 12:52 AM, Pablo Hernan Saro > <[email protected]> wrote: > Hi Mario, > > As far as I know, you can do something like this in > apache (in the vhost configuration): > ServerAlias *.yourdomain.com > > Well, this is cherokee, I know... Don't punch me! =P > If cherokee is able to do something like this, then it > is so easy to handle subdomains in Django. > If you request hotpotato.example.com, Django provides > request.META['HTTP_HOST'] with that information. So > you can play a little bit to accomplish what you need > by simply splitting it and getting the subdomain > (hotpotato). Then you can call a view named as the > requested subdomain (just an example). > > So, my question would be: is cherokee able to handle > wildcards in vhosts definition? > > Hope it helps. > Cheers >
yes, indeed I am not using wildcards, as the mighty cherokee can do, I am using regular expresion, to get sure the domains wiki.domain.com, help.domain.com, mail.domain.com not get use on the vhost. The problem isn't if *I can use subdomains in cherokee?* About the HTTP_HOST, yes it was my first idea, but it need to get a calculation on each one of my views, that is not desireble for me, why calculate in request of a page if I am on subdomain. As I was hoping, If I can setup to load specific urls, just when the user hit the subdomain would be great.
signature.asc
Description: Esto es una parte de mensaje firmado digitalmente
_______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
