I want to ask about how one would recommend to manipulate the Cherokee
configuration from a script.

I'm seeking to integrate Aegir [1] , the Drupal site provisioning
system with Cherokee. Aegir currently only integrates with Apache [2],
but in a very simple way: when a new site is added,
${APACHE_CONF}/sites/sitename.conf is created with a VirtualHost
directive, and the webserver is reloaded, and when a site is deleted
the conf file is deleted and the webserver reloaded.

I want to add support for Cherokee. I see two principle ways:
 * seperate vhost per site
 * one vhost per deployment, with additional domains added as needed

For simplicity of maintenance etc I'd prefer to have just one vhost.
Any performance differences one way or the other for large numbers of
sites?

Apache allows wildcard includes (<Include "sites/*.conf">) so that new
confs can be added/removed simply by adding/removing a file. Any plans
to support this type of conf file structure in Cherokee? The current
conf file format would not seem to allow includes.

My impression is that the best approach would be to programmatically
add/remove domains from a single vhost section. Is there a parser that
I could use to do this, or should I just roll my own regex? I know
there was some discussion of parsers etc in previous months.

Regards,

Eric Drechsel
Shared.Dre.am
Portland, OR


[1] http://groups.drupal.org/aegir/overview
[2] 
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/provision/web_server/
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to