sending ssl certificate according to virtual host

2002-11-06 Thread Mathieu Jondet
hi all,
i'm actually working on a system where a user can create domains /
subdomains throug a webinterface and doesn't have to interact with the
httpd.conf.
For this I use a unique virtualhost which intercept all client request
no matter which vh is requested. After a handler treat the request and
fetch the
data where it should be fetch.
Everyhing is working fine, but I would like to add SSL support on
the system. I want to be able to send the SSL certificate and key files
for the requested virtual host.
Depending on the vh requested I set the SSLCertificateFile and
SSLCertificateKeyFile which will point to the correct ssl files for the
requested vh.

Is there a way for doing this ?
All input appreciated and I hope my explanatins are clear enough on what
i want to do.

Thanks,
Mathieu




Generating dynamic VirtualHost and Location directives

2002-05-17 Thread Mathieu Jondet

Hi all,
I'm actually working on a application for generating dynamic virtual
host and locations in these virtual host from a web interface.
The purpose of this application is to give a non-administrator the
possibility of adding on the fly virtualhost to a webserver without
modifying httpd.conf and to add locations to a specific virtualhost.

So far I've manage to do the part of generating the httpd.conf file
through Perl sections which takes all the necessary data from a MySQL
server. The tricky part is to update the server configuration without
having to restart the server. I've looked on the web and in the archives
of the
mailing list and found things about using the PerlInitHandler. I didn't
tested it but I'm quite worried about the overhead of connecting to the
database
to check modification times of the virtual host entries.

So my question would be : what will be the more efficient way to
update my configuration against a database ?

Thanks for answers and ideas,

Regards,
Mathieu

ps: my configuration : apache 1.3.24/mod_perl 1.26 on a linux box.





Generating dynamic VirtualHost and Location directives and reloading Apache configuration

2002-05-17 Thread Mathieu Jondet

Hi all,
I'm actually working on a application for generating dynamic virtual

host and locations in these virtual host from a web interface.
The purpose of this application is to give a non-administrator the
possibility of adding on the fly virtualhost to a webserver without
modifying httpd.conf and to add locations to a specific virtualhost.

So far I've manage to do the part of generating the httpd.conf file
through Perl sections which takes all the necessary data from a MySQL
server. The tricky part is to update the server configuration without
having to restart the server.
I've looked on the web and in the archives of the mailing list and
found things about
using the PerlInitHandler and sending Apache a SIGUSR1 signal.
I don't know how to do this as I'm quite new to the mod_perl
programming. I would
also want to know if it won't be too slow to check the modifications
times of the
config in the database at each client request.

Do you have any other idea of doing this ?
What will be the more efficient way to update my configuration against a
database ?

Thanks for answers and ideas,

Regards,
Mathieu

ps: my configuration : apache 1.3.24/mod_perl 1.26 on a linux box.