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 [EMAIL PROTECTED]
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