Hi.
Have installed Apache 1.3.
Have a dynamic site where users can become members (either trial or full member) by paying online.
After I receive the payment IPN-notification from PayPal I create some stuff automatically in my MySql database using PHP4.
Have now tried to figure out how Apache works. Looks good. But for my web-application to be good I should be able to make my members site active without having to restart Apache.
Each member will have their site located here.
either on D disk or on E disk. And not in Apache RootDir!
d:/members/memberNameX
e:/members/memberNameY
When I'm testing this on apache now I'm adding lines in the
httpd.conf file: like this:
Alias /memberx "d:/members/memberx"
<Directory "d:/members/memberx">
Options Indexes FollowSymLinks ExecCGI
ScriptInterpreterSource registry
AllowOverride None
Order allow,deny
Allow from all
</Directory>
And eventually add Virtual Name based hosts the same way..
My question is this:
Can I add and hopefully remove entries like this to apache dynamically without having to restart apache to make the new URL work?
It would be very bad if I had to restart apache for every new member, at least for every new trial member...
If I can make the nessesary changes to apache using PHP4 that would be great. If so.. how can I do that.
Have read some about LoadModule directive but I do not know if this is the thing to use here or eventually how to implement it.
In apache Manual-Configuration files at the beginning I found these lines, but does not understand how to do this... :
**********************************
New with Apache 1.3.13 is a feature where if any configuration file is actually a directory, Apache will enter that directory and parse any files (and subdirectories) found there as configuration files. One possible use for this would be to add VirtualHosts by creating small configuration files for each host, and placing them in such a configuration directory. Thus, you can add or remove VirtualHosts without editing any files at all, simply adding or deleting them. This makes automating such processes much easier.
******************************
If you also could translate that to a working example it would be nice.....
Tore
Have installed Apache 1.3.
Have a dynamic site where users can become members (either trial or full member) by paying online.
After I receive the payment IPN-notification from PayPal I create some stuff automatically in my MySql database using PHP4.
Have now tried to figure out how Apache works. Looks good. But for my web-application to be good I should be able to make my members site active without having to restart Apache.
Each member will have their site located here.
either on D disk or on E disk. And not in Apache RootDir!
d:/members/memberNameX
e:/members/memberNameY
When I'm testing this on apache now I'm adding lines in the
httpd.conf file: like this:
Alias /memberx "d:/members/memberx"
<Directory "d:/members/memberx">
Options Indexes FollowSymLinks ExecCGI
ScriptInterpreterSource registry
AllowOverride None
Order allow,deny
Allow from all
</Directory>
And eventually add Virtual Name based hosts the same way..
My question is this:
Can I add and hopefully remove entries like this to apache dynamically without having to restart apache to make the new URL work?
It would be very bad if I had to restart apache for every new member, at least for every new trial member...
If I can make the nessesary changes to apache using PHP4 that would be great. If so.. how can I do that.
Have read some about LoadModule directive but I do not know if this is the thing to use here or eventually how to implement it.
In apache Manual-Configuration files at the beginning I found these lines, but does not understand how to do this... :
**********************************
New with Apache 1.3.13 is a feature where if any configuration file is actually a directory, Apache will enter that directory and parse any files (and subdirectories) found there as configuration files. One possible use for this would be to add VirtualHosts by creating small configuration files for each host, and placing them in such a configuration directory. Thus, you can add or remove VirtualHosts without editing any files at all, simply adding or deleting them. This makes automating such processes much easier.
******************************
If you also could translate that to a working example it would be nice.....
Tore