From: Robin B. <rob...@ro...> - 2005-12-22 10:51:11
|
Tom Collins said the following on 21/12/2005 17:39: > On Dec 21, 2005, at 5:53 AM, Robin Bowes wrote: > >> Can anyone tell me what htmldir is used for? >> >> As in: >> >> --enable-htmldir=DIR HTTP server's base html dir. >> >> When I say "used", what parts of qmailadmin reference this value? > > > I think it's only used later in the configure.in script to look for > where to place the images. The script combines htmldir and imageurl to > determine where to place the images. Thanks Tom. I can't actually see any evidence of it being used at all. For example, here's the configure command that I used for qmailadmin: ./configure \ --enable-autoresponder-path=/usr/bin \ --enable-cgibindir=/var/www/qmailadmin/cgi-bin \ --enable-cgipath=/qmailadmin \ --enable-domain-autofill \ --enable-help \ --enable-htmllibdir=/var/www/qmailadmin \ --enable-imagedir=/var/www/qmailadmin/images \ --enable-imageurl=/qmailadmin/images \ --enable-maxusersperpage=12 \ --enable-maxaliasesperpage=12 \ --enable-modify-spam \ --enable-spam-command="| /var/qmail/bin/preline -f /usr/bin/maildrop mailfilter" This gives me the following output as it completes: qmailadmin 1.2.9 Current settings --------------------------------------- cgi-bin dir = /var/www/qmailadmin/cgi-bin html dir = /var/www/html image dir = /var/www/qmailadmin/images image URL = /qmailadmin/images template dir = /var/www/qmailadmin qmail dir = /var/qmail vpopmail dir = /var/vpopmail autorespond dir = /usr/bin ezmlm dir = /usr/bin ezmlm idx = yes mysql for ezmlm = yes help = yes modify quota = no domain autofill = yes modify spam check = yes spam command = | /var/qmail/bin/preline -f /usr/bin/maildrop mailfilter Following a make && make install-strip, nothing is put in /var/www/html. I use the following apache config (/etc/httpd/conf.d/qmailadmin.conf): Alias /qmailadmin/images /var/www/qmailadmin/images ScriptAlias /qmailadmin /var/www/qmailadmin/cgi-bin/qmailadmin This means that any domain hosted on this server has access to qmailadmin at http://some.domain/qmailadmin [goes and looks in configure.in] Ah, I see that htmldir is used as a root for imagedir if it is not specified explicitly. So, in may case, it is not required, but it is used as a fallback default in certain other cases. Thanks for making me go and look and work it out. :) R. |