<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Not being intimately familiar with how mod_vhost_dbi works, is it
possible to provide some generic additional configurability for generic
modules?<br>
<br>
Something like:<br>
VhostDbiAdditional <name> V:<value>|Q:<query><br>
<br>
So you could provide a static value, or the result of a query when
setting up the vhost.<br>
<br>
Eg:<br>
eg1: VhostDbiAdditional "CBandLimit" Q:SELECT bandwidth_limit FROM
vhost_info WHERE ServerName = &{RequestHostname}<br>
eg2: VhostDbiAdditional "ErrorDocument 404" Q:SELECT 404_document
FROM vhost_info WHERE ServerName = &{RequestHostname}<br>
eg3: VhostDbiAdditional LogSQLTransferLogFormat Q:SELECT log_format
FROM vhost_info WHERE ServerName = &{RequestHostname}<br>
<br>
The last example being a way to allow users to set configurability for
logging stored (for some reason?) via a database served control panel.<br>
<br>
Again, I am not sure if this is feasible, or easily integrated into the
module, I am just throwing ideas out there.<br>
<br>
<br>
Cheers,<br>
Graham Weldon<br>
Software Developer<br>
<br>
<br>
Edward Rudd wrote:
<blockquote cite="mid45DA524C.6030305@outoforder.cc" type="cite">
<pre wrap="">Unfortunately in order to add the ability for mod_vhost_dbi to configure
another module, mod_vhost_dbi needs to be modified a bit to know how to
configure mod_cband.. Also mod_cband has to have some kind of *hook* to
allow mod_vhost_dbi to configure it.
Graham Weldon wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi all,
I was wondering if anyone could shed some light on how to add additional
configuration options to each virtual host whilst using mod_vhost_dbi
More specifically, I am using a combination of bandwidth management
modules including mod_cband and The bandwidth allowance varies per vhost.
How can I include these settings on a vhost-by-vhost basis?
Regards,
Graham Weldon
Software Developer
_______________________________________________
Modules mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Modules@lists.outoforder.cc">Modules@lists.outoforder.cc</a>
<a class="moz-txt-link-freetext" href="http://lists.outoforder.cc/mailman/listinfo/modules">http://lists.outoforder.cc/mailman/listinfo/modules</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>