welcome: please sign in

Diff for "DomTool/Plugins"

Differences between revisions 1 and 10 (spanning 9 versions)
Revision 1 as of 2006-12-16 22:25:00
Size: 1827
Editor: AdamChlipala
Revision 10 as of 2011-04-21 07:27:50
Size: 63
Editor: cultureclub
Comment: AFAIC that's the best aneswr so far!
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
This page is aimed at admins; that is, people with root privileges on our servers. Most members should probably consult DomTool/UserGuide instead.

This page documents the different DomTool '''plugins''', which provide the primitive actions that can be used to configure particular "real" daemons.


= Apache =

'''Modules:''' [http://deleuze.hcoop.net/domtool/apache.html Apache], [http://deleuze.hcoop.net/domtool/apache_auth.html Apache_auth], [http://deleuze.hcoop.net/domtool/apache_options.html Apache_options], [http://deleuze.hcoop.net/domtool/mod_autoindex.html Mod_autoindex], [http://deleuze.hcoop.net/domtool/mod_rewrite.html Mod_rewrite], [http://deleuze.hcoop.net/domtool/proxy.html Proxy], [http://deleuze.hcoop.net/domtool/urls.html Urls]

Each `vhost "$HOST"` directive creates a `$HOST.vhost` file in `$DOMTOOL/nodes`. A change handler for `.vhost` files copies them to `/var/domtool/vhosts`. A post-handler rsyncs `/var/domtool/vhosts` to `/etc/apache2/vhosts` after any vhost has changed. After that, it runs `/etc/init.d/apache2 reload` to reload configuration.

The Apache plugin also manages creation and deletion of log directories. Each member should have an `apache/log` subdirectory of his AFS volume root, owned by domtool with read permissions for the member. The plugin creates a directory `/afs/hcoop/usr/$USER/apache/log/$NODE/$HOST` for each virtual host running on `$NODE` as `$USER` with full hostname `$HOST`. When a vhost is deleted, the plugin deletes its log directory. Since this can't be done while Apache is running, because the daemon maintains open file handles to logs, the plugin has to take Apache down until configuration is finished, reloading it afterward. Hopefully domains aren't deleted very often, so this shouldn't be much of a problem.
AFAIC that's the best aneswr so far!

AFAIC that's the best aneswr so far!


DomTool/Plugins (last edited 2011-04-22 23:05:37 by ClintonEbadi)