RE: Module help...

2003-06-24 Thread kibble
Hey again !!

 Thanks for getting back in touch. I read through the code you have and
I'm not sure it does exactly what I'm aiming for, although it is a great
start. The caching section I have seen examples for and I'am sure it
wouldn't be too much to get it going. I know it is a lot of extra code
how ever to catch certain system events but it is possible.

I'm still not sure how I can take a varible lets say [char *vconf] and
then vconf will contain a httpd.conf styl variable like:

ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/www/htdocs
ServerName www.aproxity.com
ServerAlias *
CustomLog logs/www-access.log combined
ErrorLog logs/www-error.log

ScriptAlias /cgi-bin/ "/var/www/htdocs/cgi-bin/"

AllowOverride None
Options None
Order allow,deny
Allow from all


php_admin_value open_basedir /var/www/htdocs



And then just merge that variable into the conf as it stands ... Not
sure how I can go about getting stuff like back into the server current
conf and settings ? I mean also stuff like ServerAlias wouldn't be
required as the module I have uses the client host request for the
lookup anyways...?

But there would be other flags to take in account which are handled by
other modules, like rewrite or in the example above the php admin values
??

How can I go about merging these returned results into apache2 ? Perhaps
if I knew the answer I can convert it over to 1.3 as well ? Anyone on
the mailing list knows anything about this ?

Anyways, something to think about ...

-Original Message-
From: Sebastian Abt [mailto:[EMAIL PROTECTED] 
Sent: 24 June 2003 11:16
To: [EMAIL PROTECTED]
Subject: Re: Module help...


Hi,

* "kibble" <[EMAIL PROTECTED]> wrote:

> That would be great if you could send me or if I can see some of the
> code...

sorry, I was quit busy last time..

> Let's put our heads together and make a really good module!! :D

You can find my module attached.

As I saw later, you're writing your module for Apache2. Mine is for
Apache 1.x, but maybe we can put code together and can build up a module
for Apache 1 and Apache 2 with the same or similar "core"?

My module works quite well at this moment. Now I'm trying to implement
some kind of caching, but that seems not to be that easy as I thought
before ;-)

regards,
sebastian



Re: Module help...

2003-06-20 Thread Sebastian Abt
Hi,

* "kibble" <[EMAIL PROTECTED]> wrote:

> I'm creating a module for Apache2 and wanted to know how to take a
> variable something like this:
[...]
> Parse that variable and then merge it into the configuration?
> If anyone wants to see the code as it stands visit...
> http://aproxity.com/mod_kmipvd.c

I'm writting the same kind of module right now. I'll send you my code
later (gona sleep now ;-). Maybe we could merge some parts of yours with
some of mine..

bye,
sebastian