You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Edwin Pratomo <ed...@computer.org> on 2000/06/19 15:32:27 UTC

Reading config

Hi, 

how to get configuration values at run-time, such as DirectoryIndex? 

TIA.
Edwin.

Re: Reading config

Posted by Matt Sergeant <ma...@sergeant.org>.
On Fri, 30 Jun 2000, Dan Rench wrote:

> 
> On Mon, 19 Jun 2000, Matt Sergeant wrote:
> 
> > On Mon, 19 Jun 2000, Edwin Pratomo wrote:
> > > 
> > > how to get configuration values at run-time, such as DirectoryIndex? 
> > 
> > I don't think you can - that configuration directive is specific to
> > mod_index, and only mod_index can access it, AFAIK.
> 
> Yes you can:
> 
> http://forum.swarthmore.edu/epigone/modperl/tenjerdkee/Pine.SOL.4.21.0003020948370.25212-100000@john.i-2.com

Yeah, but only using a hack ;-)

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org


Re: Reading config

Posted by Dan Rench <dr...@i-works.com>.
On Mon, 19 Jun 2000, Matt Sergeant wrote:

> On Mon, 19 Jun 2000, Edwin Pratomo wrote:
> > 
> > how to get configuration values at run-time, such as DirectoryIndex? 
> 
> I don't think you can - that configuration directive is specific to
> mod_index, and only mod_index can access it, AFAIK.

Yes you can:

http://forum.swarthmore.edu/epigone/modperl/tenjerdkee/Pine.SOL.4.21.0003020948370.25212-100000@john.i-2.com



Re: Reading config

Posted by Matt Sergeant <ma...@sergeant.org>.
On Mon, 19 Jun 2000, Edwin Pratomo wrote:

> 
> Hi, 
> 
> how to get configuration values at run-time, such as DirectoryIndex? 

I don't think you can - that configuration directive is specific to
mod_index, and only mod_index can access it, AFAIK.

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org