Web Servers General Talk - Getting Listen directive value in a mod_perl <Perl> section in httpd.conf

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers General Talk > March 2004 > Getting Listen directive value in a mod_perl <Perl> section in httpd.conf





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Getting Listen directive value in a mod_perl <Perl> section in httpd.conf
Gatekeeper

2004-03-10, 8:33 pm

I have no problem getting the Port directive value through
Apache->server->port, but I can't seem to find a way to get the Listen
directive's value. It will be set as an IP address, so I need it for a
dynamic NameVirtualHost along with some VirtualHost sections (I get the
info for those from a database). All of this works fine if I hard code
the value for the NameVirtualHost value, as in...

$NameVirtualHost = q(127.0.0.1);

but that defeats the whole purpose. Is there any way to get this
particular configuration directive value, or the values of other
configuration directives given prior to the <Perl> section?

Any help at all would be most appreciated. Thanks for your time.

Stryder22204@yeehaw.com

Yahoo!

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com