httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kibble" <kib...@aproxity.com>
Subject Module help...
Date Fri, 20 Jun 2003 21:54:36 GMT
Hi there.

I'm creating a module for Apache2 and wanted to know how to take a
variable something like this:

[CODE]
char *new_conf;
new_conf = "<VirtualHost *>
        ServerAdmin kibble@aproxity.com
        DocumentRoot /var/www/kibble
        ServerName www.aproxity.com
        ServerAlias www.aproxity.com
        CustomLog logs/a_k.log combined
        ErrorLog logs/e_k.log

        ScriptAlias /cgi-bin/ "/var/www/kibble/cgi-bin"
        <Directory "/var/www/kibble/cgi-bin">
                AllowOverride None
                Options None
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>";
[/CODE]

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

If I can at least see an example or know if it possible or not possible,
then I would be grateful!

Thank you in advance

    kibble



Mime
View raw message