On Friday 04 March 2005 10:24 am, Tomasz Lutelmowski wrote:
> On Fri, 4 Mar 2005 10:30:09 +1100 (EST), Devraj Mukherjee wrote
>
> > Hi Tomek,
> >
> > Can I ask you if you have been able to configure Apache dynamically
> > (VirtualHost) using an RDBMS backend?
>
> Dear Devraj,
>
> I dont use RDBMS backend for apache, because I didn't find modules that
> provide storing configuration in PostgreSQL.
>
> My vhosts.conf looks like this:
>
> <Directory /w/*/www>
> Options -All ExecCGI FollowSymLinks
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
> Include /etc/apache2/conf/vhosts/hosts/*
>
> And in /etc/apache2/conf/vhosts/hosts/ I have one file per domain, for ex.
> /etc/apache2/conf/vhosts/hosts/domain.pl:
> <VirtualHost *>
> ServerName www.domain.pl
> DocumentRoot /w/domain.pl/www
> Include /etc/apache2/conf/vhosts/rewrite.conf
> </VirtualHost>

I have a similar setup. However, I'm using the apache-2.0.52-r3
which already provides the new apache config layout,
that includes, that all *.conf files in /etc/apache2/vhost.d/ will
be included automatically.

Though, I just wrote put there a 10-common.conf that
contains config settings common to all vhosts, like:
<Directory /var/www/*/htdocs>
    Option allow, deny
    Allow from all
</Directory>

And have for each Vhost, lets say "FQDN" a seperate .conf file,
in this case 60-FQDN.conf that gets included by the gentoo
apache config by default. Though, no need to do to much etc-update
on a ebuild bump.

However.... for your quota, I'd suggest, that you
write your own script, that e.g. runs hourly and looks
for new jobs (like updating quotas) and performs these
tasks, if avail. So, you don't have to override quotas for each
and little user account hourly but just the changed ones.
If your this needs root (I guess so), just put it into
/etc/cron.hourly/ or add the line into `crontab -e -u root`
Or run it on demans (using cgi-bin or so) with suid root.

Regards,
Christian Parpart.

-- 
Netiquette: http://www.ietf.org/rfc/rfc1855.txt
 10:50:25 up 126 days,  3:20,  2 users,  load average: 0.00, 0.07, 0.08

Attachment: pgpgyoF7R3kex.pgp
Description: PGP signature

Reply via email to