RE: Set DocumentRoot from modperl

2000-04-04 Thread Doug MacEachern
On Tue, 4 Apr 2000, Karyn Ulriksen wrote: > Which handler would be appropriate to do the cleanup on this? you register the cleanup function from whatever handler changes document_root. that'll happen at the same time as PerlCleanupHandler, which is after PerlLogHandler. >> my $old_docroot = $r

RE: Set DocumentRoot from modperl

2000-04-04 Thread Karyn Ulriksen
Which handler would be appropriate to do the cleanup on this? -Original Message- From: Doug MacEachern [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 02, 2000 10:39 PM To: Serge document_root; $r->register_cleanup(sub { shift->document_root($old_docroot) }); the lifetime of conf->ap_docu

Re: Set DocumentRoot from modperl

2000-04-02 Thread Doug MacEachern
there have been several requests for the ability to modify the DocumentRoot, i reckon it's about time we allow that. caveats: if you want the DocumentRoot to be reset to the original value after the request is over, you'll have to do that yourself, something like: my $old_docroot = $r->document_r

RE: Set DocumentRoot from modperl

2000-03-28 Thread Serge
n. I did! >> >> >> - Best regards, >> >> Karyn Ulriksen Chief Systems Architect PublicHost 22 Mauchly, Suite 200 >> Irvine, California 92618 USA Phone: (949) 743-2000 email: >> [EMAIL PROTECTED] URL

RE: Set DocumentRoot from modperl

2000-03-28 Thread Michael
> I believe he is trying to do this 'on the fly' without reboot for > the new configs. > Oh, maybe I misunderstood. The problem I had was executing code that needed to know the document root which seems to point to the main mod_perl doc root rather than the root of the particular virtual root.

RE: Set DocumentRoot from modperl

2000-03-28 Thread Karyn Ulriksen
to:[EMAIL PROTECTED]] Sent: Tuesday, March 28, 2000 2:03 PM To: [EMAIL PROTECTED] Subject: RE: Set DocumentRoot from modperl > Sergio, > >I just walked this route... > >The long and short is that it can't be done anything close to >feasably. There is a work around

RE: Set DocumentRoot from modperl

2000-03-28 Thread Michael
n > Chief Systems Architect > PublicHost > 22 Mauchly, Suite 200 > Irvine, California 92618 USA > Phone: (949) 743-2000 > email: [EMAIL PROTECTED] > URL: http://www.publichost.com > > > > -Original Message- > From: Serge mailto:[EMAIL PROTECTED]] > Sent: Tuesday, M

Re: Set DocumentRoot from modperl

2000-03-28 Thread Rodney Broom \(OE\)
- Original Message - From: "Serge > ...parameters comes from a database > ...so I can't restart Apache in general I'll readilly admit that I don't actually know about the specific performance hits here, but at my last job we did our entire config in Perl. Yes, we just kicked the server

RE: Set DocumentRoot from modperl

2000-03-28 Thread Karyn Ulriksen
Karyn Ulriksen Chief Systems Architect PublicHost 22 Mauchly, Suite 200 Irvine, California 92618 USA Phone: (949) 743-2000 email: [EMAIL PROTECTED] URL: http://www.publichost.com -Original Message- From: Serge mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 28, 2000 1:45 PM To: [EMAIL P

Set DocumentRoot from modperl

2000-03-28 Thread Serge
Hi, I am trying to find a way of setting DocumentRoot (and possibly Alias) directly from modperl in order to implement dynamically generated virtual hosting. The thing is that my virtualhost parameters comes from a database and may change anytime (so I can't restart Apache in general), so it is