Tim Riley schrieb:
> So I will need to write a new config every time I want to prefix my domain 
> name with something? I was thinking that I could use something similiar to 
> the examples (http://www.cherokee-project.com/doc/Redirections.html#Examples) 
> but have instead of having a request after the domain name be able to pick 
> the domain prefix and redirect that way.

Afaik, the problem is that Cherokee does not support the usage of a 
catch-all handler for virtual hostnames i.e. "*.domain.de". So if you 
want to answer to a request you will likely have to specify this 
subdomain first. If you want to be able to have multiple subdomains that 
users might to be able to generate you just have the choice of 
generating a new configuration file everytime a new subdomain is 
requested -- as Brian said -- or you will have to pre-generate a mass of 
subdomains.

I know, it would be nice if Cherokee would support the usage of a 
catch-all handler. I personally prefer this methode even if there would 
be a mysql->config method.

The only suggestion for your problem I can think of: You could generate 
CNAMES. These CNAMES are the user-generated subdomains that redirect to 
a special subdomain. This subdomain would redirect the request using the 
redirect handler to your script where you can check how the uri looks 
like. This obviously means you must have direct access to a nameserver. 
It doesn't make sense otherwise. But with eazyDNS you might have the 
possibility to have a php->mysql->dns solution.

Maybe this helps a bit...

-- 
Lennart Droste
_______________________________________________
Cherokee mailing list
[email protected]
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to