Recommended way to use autotools

2009-11-16 Thread Dave Ingram
Hi all, I've been wondering if there is a recommended way of using autotools when writing an Apache module? I've seen a tutorial http://threebit.net/tutorials/apache2_modules/tut1/tutorial1.html on this, but it was last updated in 2005, so I'm not sure if there are any better ways or things

Re: MySQL Virtual Host and Traffic Module

2009-04-19 Thread Dave Ingram
. Actually I am searching for a module that write all the vhost configuration to a database and read it from db also. thanks. Eldho Dave Ingram wrote: Hi Vaughan, Thanks for the response. I haven't thought of doing the SQL query the way you suggested, however I agree

Re: APR feature detection

2009-04-03 Thread Dave Ingram
Sorin Manolache wrote: On Thu, Apr 2, 2009 at 19:45, Dave Ingram d...@dmi.me.uk wrote: Hi guys, Is there any way that my module can detect which APR features are enabled in Apache? It relies on DBD, and if that's not available then my module just segfaults, which isn't very friendly. I'd

Re: custom background thread and module sharing a data structure

2009-04-03 Thread Dave Ingram
Hi Sorin, Sorin Manolache wrote: On Wed, Mar 11, 2009 at 02:08, Andrej van der Zee andrejvander...@gmail.com wrote: Hi, I need to modify Apache and run one custom background thread. In addition, my custom modules have to be able to share a data structure with this background thread.

APR feature detection

2009-04-02 Thread Dave Ingram
Hi guys, Is there any way that my module can detect which APR features are enabled in Apache? It relies on DBD, and if that's not available then my module just segfaults, which isn't very friendly. I'd prefer to give an error message to the user, telling them that DBD is required. Does anyone

Re: MySQL Virtual Host and Traffic Module

2009-03-19 Thread Dave Ingram
/template the virtual hosts. I myself have written a database-backed templating module that could be used for virtual hosting (http://www.dmi.me.uk/code/apache/mod_sqltemplate/) and I'm curious to see other approaches. Thanks, Dave Thanks, Vaughan -Original Message- From: Dave Ingram

Re: MySQL Virtual Host and Traffic Module

2009-03-18 Thread Dave Ingram
Vaughan, What I have so far are 2 filters which gather the inbound traffic and outbound traffic for each transaction. These work ok and when logging transactions to file all of the in/out byte amounts appear to be correct. The first problem however, is that each child has its own set of

Re: mod_vhost_dbd

2009-02-15 Thread Dave Ingram
Hi Jorge, Something with the same name: http://code.google.com/p/dbd-modules/wiki/mod_vhost_dbd self-promotion I don't know if that's what you're after, but I've written something vaguely similar but more flexible: http://www.dmi.me.uk/code/apache/mod_sqltemplate/ /self-promotion Hope this

Re: mod_vhost_dbd

2009-02-15 Thread Dave Ingram
Jorge Bastos wrote: This is possible using mod_sqltemplate. Suppose in your database, you have a php_register_globals column, which is either On or Off. Then this will work: [snip] So I think my problem is resolved! Resuming, I can have as many columns I want in the hosts table, correct?

Re: mod_vhost_dbd

2009-02-15 Thread Dave Ingram
Jorge Bastos wrote: Dave, You could have a Install.txt file to explain how to compile. I'm not very familiar with apxs2 :) Can you post here? Erm. I think all you need to use is: apxs2 -i -c mod_sqltemplate.c as root, to compile and install in one step. Don't forget to add the

Re: mod_vhost_dbd

2009-02-15 Thread Dave Ingram
Jorge Bastos wrote: Sorry about apxs. That's fine -- everyone has to learn somewhere. I'm just curious, libmysql shouldn't be linked agains the .so module Nope - it uses the built-in APR DBD in Apache, which already links against MySQL. Dave

Re: Making mod_auth_digest mysql

2009-02-06 Thread Dave Ingram
The -f and -d flags for RewriteCond are for checking the file system, not environment variables, although they can use environment variables if necessary. For example: RewriteCond %{DOCUMENT_ROOT}/%{ENV:foo} -d would check that the folder named by the environment variable foo exists in the

Announcement: mod_sqltemplate

2009-02-01 Thread Dave Ingram
Hi all, A while ago, I discussed[1] the idea of a flexible SQL-based configuration templating module for Apache 2.2. I've since written the code, and (after letting it fall by the wayside for a couple of months), I'm ready for people to test it, poke it and break it (and then send me a bug

Re: Logging authentication requests

2008-10-09 Thread Dave Ingram
To clarify: Is it currently possible to log authentication requests (ideally both success and failure, individually)? If not, is it possible? Meant: is it currently possible to do this with Apache 2.2 (perhaps using an existing module)? If not, is it even theoretically possible? Dave

Re: APR DBD: Column names from query

2008-08-29 Thread Dave Ingram
Nick Kew wrote: Dave Ingram wrote: First off, if this isn't the correct place to ask this then I apologise, but it seemed the most appropriate list. If there's somewhere more appropriate, please let me know. I've had a quick look for some information on accessing a database via APR

Re: Configuration file templating

2008-08-19 Thread Dave Ingram
Hi Albert, Its not a module, but I've been working on a generic configuration file templating system to be powered by a variety of data sources, including SQL. You might enjoy checking it out: http://www.hypermagnet.com/ Thanks for the information and link - I'll definitely have a look