Using "switch" in section.

2006-08-18 Thread Krist van Besien
Hello, this is my first post to the mod_perl mailing list. I have been using mod_perl for about a week now. I do however have quite a few years Perl scripting experience. What I am trying to do is: Make one httpd.conf that will be suitable for all of our servers. We have about 20 (and growing) a

PerlConfig

2006-08-21 Thread Krist van Besien
Hello, I have been struggling with the $PerlConfig, and @PerlConfig variables, only to find out that in the current release of Mod_Perl they are broken. In SVN this has aparently allready been corrected though. So: - When will we get 2.0.3? - What do I do in the mean time? I really need the @Pe

Virtual Hosts in "Perl" sections.

2006-09-24 Thread Krist van Besien
Hello, The folllowing piece: 1 2 $VirtualHost{"0.0.0.0"} = { 3 DocumentRoot => "/home/foo/webservers/wiki.foo.net/htdocs", 4 ServerName => "wiki.foo.net", 5 }; 6 7 8 Creates a virtual host that is equivalent to the following code: Serve

Getting user input during apache startup

2007-05-02 Thread Krist van Besien
Hello, I use sections quite intensively to configure my apache server. I would like to build in some user interaction during startup. For this I added the following code to my httpd.conf: (I omitted the non relevant parts) # We need a couple of modules, which we load here. use Sys::Hostna

Re: Getting user input during apache startup

2007-05-02 Thread Krist van Besien
On 5/2/07, John Saylor <[EMAIL PROTECTED]> wrote: hi -Original Message- From: Krist van Besien [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 02, 2007 8:59 AM [deletions] I use sections quite intensively to configure my apache server. I would like to build in some user inter

Testing for -D parameters.

2007-05-08 Thread Krist van Besien
Hello, Suppose I start my apache with an extra paramter, eg "-D FOO". Is there a way to test for the presences of this parameter from within mod perl sections? Krist -- [EMAIL PROTECTED] Bremgarten b. Bern, Switzerland -- A: It reverses the normal flow of conversation. Q: What's wrong with to

Odd difference between "restart" and "stop - start".

2007-06-08 Thread Krist van Besien
Hello all, I use mod_perl's sections quite intensively so that I can have one config for all our webservers, and so that I can change some settings easily using variables. I recently noted however that sections are treated differently when doing a restart (httpd -k restart) than when doing a fu

Checking for group membership in a mod perl handler.

2007-09-18 Thread Krist van Besien
oblem. My problem is that its not clear to me how to tie this code in the whole apache processing. Do I need to write a PerlAuthzHandler? Or something else? apache is 2.0.59, mod_perl is 2.0 Thanks in advance, Krist van Besien -- [EMAIL PROTECTED] Bremgarten b. Bern, Switzerland -- A: It re

Server status in mod_perl

2008-05-16 Thread Krist van Besien
Hello all, Apache httpd has a module, mod_status, that gives information about. amongst other things, the number of active workers, the number of idle workers etc... (See: http://httpd.apache.org/docs/2.0/mod/mod_status.html) My question: Is there a way to access this info from within a modperl ha