|
Posted by Mumia W. on July 20, 2006, 7:23 am
Please log in for more thread options
On 07/19/2006 07:09 PM, Big and Blue wrote:
> robert@elastica.com wrote:
>> So how can I set up the environment prior to launching
>> httpd so that these values are available in <Perl>
>> stanza's in httpd.conf?
>
> Set an environment variable then access it via %ENV?
>
>> I want to be able to pass information from the script
>> that launches httpd and have that information available
>> within a <Perl> stanza.
>
> You could also, of course, just include a file into
> httpd.conf which has the relevant values set. If necessary
> this included file could be created with the relevant
> values added in dynamically by the startup script.
>
That won't work out well because the server would have to be
restarted.
Robert, instead I suggest you modify an .htaccess file
instead. Htaccess files are re-read on each access. However, I
doubt you need to do this. Probably anything you can do in a
<Perl> section of an Apache config file can also be done in a
custom perl-handler.
HTH
|