On Wed, 6 Apr 2005 21:58:56 +0100 Simon Matthews <[EMAIL PROTECTED]> wrote:
> > I have a number of applications built around mod_perl 1.0 and I am > considering porting these over to 2.0. > > One of the questions that has come up here recently is can mod_perl > modify the httpd configuration dynamically after server startup. > > We currently build the server configuration from entries in a sql > database which means that we can add customer specific sites by > configuring entries in our database. The benefit of this approach is > that we are not having to do dynamic calls for all pages. However it > does mean that we have to restart the server when we want a new part > of the site available. I have considered using a hybrid approach of > static configuration on server startup and dynamic for anything that > is created after startup. It would be great if I could effectively > create a /Location or /Alias entry dynamically through perl code. Is > this possible in either 1.0 or 2.0. Yes this is possible with both versions. I couldn't find any 2.0 specific docs on this, but here is the relevant section of the 1.0 docs: http://perl.apache.org/docs/1.0/guide/config.html#Apache_Configuration_in_Perl --------------------------------- Frank Wiles <[EMAIL PROTECTED]> http://www.wiles.org ---------------------------------