[QUESTION] Relating a request to a response

2003-10-02 Thread Pringle, Chris (HP-PSG)
Title: [QUESTION] Relating a request to a response I'm currently working on a project to transform web content. It's basically a proxy server that has some Mod_Perl filters loaded to perform the transformations. Below is a diagram that shows how the requests are being passed from client to w

[mp2] Declining from response handler bypasses other handlers

2003-10-02 Thread Matthew Westcott
I'm using a PerlResponseHandler to control access to selected directories of a site, and I've encountered a similar problem to that described in http://marc.theaimsgroup.com/?l=apache-modperl&m=106141216914801&w=2 where returning a 'declined' status is skipping other handlers and going straight

RE: [QUESTION] Relating a request to a response

2003-10-02 Thread Pringle, Chris (HP-PSG)
Hello, Apache has been configured as a proxy server. Here are the directives from my Apache config file: LoadModule perl_module modules/mod_perl.so PerlModule Apache2 PerlModule iProxy::ContentFilter PerlModule iProxy::RequestFilter ProxyRequests On ProxyRemote * http://corporate_proxy_server:80

Re: [mp2] Declining from response handler bypasses other handlers

2003-10-02 Thread Geoffrey Young
Matthew Westcott wrote: I'm using a PerlResponseHandler to control access to selected directories of a site, and I've encountered a similar problem to that described in http://marc.theaimsgroup.com/?l=apache-modperl&m=106141216914801&w=2 where returning a 'declined' status is skipping other han

[mp1] Apache gets segfault when starting after modperl upgrade.

2003-10-02 Thread Przemyslaw Jaroszewski
Hi, On Debian linux, fter apt-get upgrade which fetched 1.27-7 of libapache-mod-perl, the Apache server does not start anymore (just gets Segmentation fault). This happens only when the conf file tells it to load perlmod: LoadModule perl_module /usr/lib/apache/1.3/mod_perl.so Here's the output f

Re: [mp1] Apache gets segfault when starting after modperl upgrade.

2003-10-02 Thread Ged Haywood
Hi there, On Thu, 2 Oct 2003, Przemyslaw Jaroszewski wrote: > On Debian linux, fter apt-get upgrade which fetched 1.27-7 of > libapache-mod-perl, the Apache server does not start anymore (just gets > Segmentation fault). I have no experience with Debian. Perl and mod_perl must be compiled with

Re: [mp1] Apache gets segfault when starting after modperl upgrade.

2003-10-02 Thread Damyan Ivanov
On Thu, 2 Oct 2003, Przemyslaw Jaroszewski wrote: > On Debian linux, fter apt-get upgrade which fetched 1.27-7 of > libapache-mod-perl, the Apache server does not start anymore (just > gets Segmentation fault). See http://bugs.debian.org/apache-perl Basically apache-perl must be recompiled again

Re: [mp2] Declining from response handler bypasses other handlers

2003-10-02 Thread Matthew Westcott
On 2 Oct 2003 at 9:15, Geoffrey Young wrote: > if you want to dynamically decide who should serve the page - mod_perl if > some directory is found, mod_php otherwise, then you can use your own > PerlTypeHandler or PerlFixupHandler to set $r->handler for the request based > on your own criteria.

Re: [mp2] Declining from response handler bypasses other handlers

2003-10-02 Thread HLiu
My suggestion are: 1.print $requested_dir; to see what you got. 2 changing your code return Apache::DECLINED unless exists $protected_dirs{$requested_dir}; to return Apache::DECLINED if $protected_dirs{$requested_dir}; Hope it helpful. Willy

Class::DBI question

2003-10-02 Thread Warren Pollans
Hello, I have a CGI-based app that currently uses Apache::Registry and Apache::DBI to access/manipulate data in a mysql DB. I am considering rewriting it to use Class::DBI and would like to know what sort of mod_perl-related problems, if any, I am likely to encounter - assuming that I code the

Re: [mp1] Apache gets segfault when starting after modperl upgrade.

2003-10-02 Thread Thomas Nagel
Hi, You may rebuild libapache-mod-perl (seems to works for my config) with the new perl-5.8.1 packages installed: $ cd /tmp $ apt-get source libapache-mod-perl $ cd apache-1.3.27 $ fakeroot dpkg-buildpackage -uc -us $ dpkg -i ../libapache-*.deb Any clues? Regards, Przemek Bye -- [EMAIL PROTE

Re: [QUESTION] Relating a request to a response

2003-10-02 Thread Stas Bekman
Pringle, Chris (HP-PSG) wrote: I'm currently working on a project to transform web content. It's basically a proxy server that has some Mod_Perl filters loaded to perform the transformations. Below is a diagram that shows how the requests are being passed from client to web server. CLIENT <->

Re: [QUESTION] Relating a request to a response

2003-10-02 Thread Stas Bekman
Also, once you finish this project, it'd be really nice to put a simplified version of your code as a tutorial into the filters documentation as a great example of the filters power. If you can do that, that would be great. Thanks.

how to unsubscribe

2003-10-02 Thread Craig Edwards
How do i unsubscribe from this list? is there a delay when the unsubscribe email is sent? it seems to not have aknowledged my unsubscribe request yet... --- WinBot IRC client developer: http://www.winbot.co.uk ChatSpike - The use

comunication between phases

2003-10-02 Thread gerard uolaquetalestem
Hello, i have a mod_perl module that uses cookies to comunicate between server and client, but now i need to change to a URI model comunication. I get a URI with some data coded inside it, i pass a handler in the appropiate phase to parse that URI, to convert to the right URI and to get that data

Re: Class::DBI question

2003-10-02 Thread Perrin Harkins
On Thu, 2003-10-02 at 12:25, Warren Pollans wrote: > I am considering rewriting it to use Class::DBI and would like to know > what sort of mod_perl-related problems, if any, I am likely to > encounter I'm not aware of any issues specific to mod_perl and Class::DBI. You should be fine. - Perrin

Re: comunication between phases

2003-10-02 Thread Perrin Harkins
On Thu, 2003-10-02 at 18:20, gerard uolaquetalestem wrote: > a magical way to comunicate between phases??? Sounds like you want pnotes(). Also, keep in mind that global variables retain their values, so you can easilly put things in globals as long as you don't mind them having a value on the n

Re: mod_perl 2: APR::URI scheme and path_info

2003-10-02 Thread Matisse Enzer
-8<-- Start Bug Report 8<-- 1. Problem Description: I tried: my $scheme = APR::URI->parse($r->pool, $r->uri)->scheme; and it didn't seem to work. My server is on port 9000 but I got nothing in $scheme. At 4:53 PM -0700 10/1/03, Stas Bekman wrote: Mat

Re: mod_perl 2: APR::URI scheme and path_info

2003-10-02 Thread Matisse Enzer
I mean to say my server is running under http (not https) - (It is running on port 9000, in case that makes a differece.) and it didn't seem to work. My server is on port 9000 but I got nothing in $scheme. -- -- Matisse Enzer Doodlelab Inc. 415-925-5294 ex

mod_perl 2: $r->get_server_port

2003-10-02 Thread Matisse Enzer
Before I file a bug report, am I doing this right: use Apache::RequestUtil; my $port = $r->get_server_port; # should be my port number My problem is that get_server_port seems to return 870 regardless of the actual port (set with Listen in httpd.conf) -- -

Re: mod_perl 2: APR::URI scheme and path_info

2003-10-02 Thread Stas Bekman
Matisse Enzer wrote: -8<-- Start Bug Report 8<-- 1. Problem Description: I tried: my $scheme = APR::URI->parse($r->pool, $r->uri)->scheme; and it didn't seem to work. My server is on port 9000 but I got nothing in $scheme. Ai, my bad, sorry about that.

Apache bandwidth calculating

2003-10-02 Thread Abd El-Hameed Mohammed
Hi all Do any one know where i can find the source of mod_bwlimited or any recources for modules like it. Thank you [This E-mail scanned for viruses using McAfee.]

Re: mod_perl 2: $r->get_server_port

2003-10-02 Thread Stas Bekman
Matisse Enzer wrote: Before I file a bug report, am I doing this right: use Apache::RequestUtil; my $port = $r->get_server_port; # should be my port number My problem is that get_server_port seems to return 870 regardless of the actual port (set with Listen in httpd.conf) may be you a

Re: Apache bandwidth calculating

2003-10-02 Thread Stas Bekman
Abd El-Hameed Mohammed wrote: Hi all Do any one know where i can find the source of mod_bwlimited or any recources for modules like it. Probably not on the mod_perl list ;) Try http://modules.apache.org/ and http://google.com/ __

Re: mod_perl 2: APR::URI scheme and path_info

2003-10-02 Thread Geoffrey Young
Stas Bekman wrote: Matisse Enzer wrote: -8<-- Start Bug Report 8<-- 1. Problem Description: I tried: my $scheme = APR::URI->parse($r->pool, $r->uri)->scheme; and it didn't seem to work. My server is on port 9000 but I got nothing in $scheme. Ai, my

Re: Apache bandwidth calculating

2003-10-02 Thread Matisse Enzer
Title: Re: Apache bandwidth calculating At 2:30 AM +0200 10/3/03, Abd El-Hameed Mohammed wrote:  Hi all Do any one know where i can find the source of  mod_bwlimited  or any recources for modules like it.    Thank you One resource would be mod_bandwidth    http://www.cohprog.com/mod_bandw

Re: mod_perl 2: $r->get_server_port

2003-10-02 Thread Matisse Enzer
The module I'm working on is used by Apache::XMLRPC::Lite to handle requests. I have a test module (a PerlResponseHandler) in which all this works fine (get_server_port, construct_server - thanks for that one!) So, I am suspecting that Apache::XMLRPC::Lite is causing the problem. At 5:51 PM

Re: mod_perl 2: APR::URI scheme and path_info

2003-10-02 Thread Matisse Enzer
Thanks, I'll use the return 'https' if uc($self->https()) eq 'ON'; approach. At 5:06 PM -0700 10/2/03, Stas Bekman wrote: Matisse Enzer wrote: -8<-- Start Bug Report 8<-- 1. Problem Description: I tried: my $scheme = APR::URI->parse($r->pool, $r-

Re: 5.8.1 and srand

2003-10-02 Thread Stas Bekman
Stas Bekman wrote: [CC'ing the modperl list] Joey Hess wrote: Brendan O'Dea wrote: On Wed, Oct 01, 2003 at 03:30:40PM -0400, Joey Hess wrote: Do you have any idea why perl 5.8.1 started seeding the RNG as soon as perl starts? This is very annoying for mooix, all methods run by mood get the sam

Re: 5.8.1 and srand

2003-10-02 Thread Stas Bekman
[CC'ing the modperl list] Joey Hess wrote: Brendan O'Dea wrote: On Wed, Oct 01, 2003 at 03:30:40PM -0400, Joey Hess wrote: Do you have any idea why perl 5.8.1 started seeding the RNG as soon as perl starts? This is very annoying for mooix, all methods run by mood get the same random seed unless

Re: FAIL mod_perl-1.99_10 MSWin32-x86-multi-thread 4.0

2003-10-02 Thread Randy Kobes
On Wed, 1 Oct 2003, DH wrote: > This distribution has been tested as part of the cpan-testers > effort to test as many new uploads to CPAN as possible. See > http://testers.cpan.org/ > > Please cc any replies to [EMAIL PROTECTED] to keep other > test volunteers informed and to prevent any duplica

Re: FAIL mod_perl-1.99_10 MSWin32-x86-multi-thread 4.0

2003-10-02 Thread Stas Bekman
Randy Kobes wrote: On Wed, 1 Oct 2003, DH wrote: This distribution has been tested as part of the cpan-testers effort to test as many new uploads to CPAN as possible. See http://testers.cpan.org/ Please cc any replies to [EMAIL PROTECTED] to keep other test volunteers informed and to prevent any