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

Checking for group membership in a mod perl handler.

2007-09-18 Thread Krist van Besien
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 reverses the normal flow

Odd difference between restart and stop - start.

2007-06-08 Thread Krist van Besien
Hello all, I use mod_perl's perl 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 perl sections are treated differently when doing a restart (httpd -k restart) than when

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 perl sections? Krist -- [EMAIL PROTECTED] Bremgarten b. Bern, Switzerland -- A: It reverses the normal flow of conversation. Q: What's wrong with

Getting user input during apache startup

2007-05-02 Thread Krist van Besien
Hello, I use perl 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) perl # We need a couple of modules, which we load here. use

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 perl sections quite intensively to configure my apache server. I would like to build in some user interaction

Virtual Hosts in Perl sections.

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

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