Re: Overriding a built-in Apache configuration directive using mod_perl

2012-01-14 Thread Matisse Enzer
elf->{'Require'} = \@translated_args; } On Jan 14, 2012, at 9:57 AM, Matisse Enzer wrote: > Is it practical to override a built-in Apache config directive such as > 'Require' in a mod_perl Apache module? > > I have examined the documentation at: > http://pe

Overriding a built-in Apache configuration directive using mod_perl

2012-01-14 Thread Matisse Enzer
Is it practical to override a built-in Apache config directive such as 'Require' in a mod_perl Apache module? I have examined the documentation at: http://perl.apache.org/docs/2.0/user/config/custom.html#Creating_and_Using_Custom_Configuration_Directives and it seems like it might work, but I'd

Re: No $r = no mod_perl?

2011-07-10 Thread Matisse Enzer
Do you have a configuration similar to this in httpd.conf: AuthType Apache2::AuthCookieDBI AuthName WhatEver PerlAuthenHandler Apache2::AuthCookieDBI->authenticate PerlAuthzHandler Apache2::AuthCookieDBI->authorize require valid-user # or you

Re: PerlAuthenHandler returns HTTP_UNAUTHORIZED (401) but Apache sends REDIRECT (302) and drops Set-Cookie and WWW-Authenticate header

2011-05-28 Thread Matisse Enzer
n the same server. -M On May 28, 2011, at 2:31 PM, Torsten Förtsch wrote: > On Saturday, May 28, 2011 21:10:14 Matisse Enzer wrote: >>$r->custom_response( HTTP_UNAUTHORIZED, $uri ); >>return HTTP_UNAUTHORIZED > > Make sure $uri does not contain the hostport part.

PerlAuthenHandler returns HTTP_UNAUTHORIZED (401) but Apache sends REDIRECT (302) and drops Set-Cookie and WWW-Authenticate header

2011-05-28 Thread Matisse Enzer
Using Apache/2.2.17 mod_perl/2.0.5. We have a PerlAuthenHandler that (on failure to authenticate) sets two headers ('Set-Cookie' and 'WWW-Authenticate' and returns HTTP_UNAUTHORIZED. We also use $r->custom_response to set a URL as the response body. What I expect Apache to send to the client is

Re: is there a templating system that....

2005-08-15 Thread Matisse Enzer
On Mon, 15 Aug 2005, David Nicol wrote: > > I'm seriously considering publishing a Template::Substitution::KISS or > something like that in a futile attempt to piss higher than Uri Guttman. Just a data point: I'm the maintainer of Text::TagTemplate and will soon release a version that lets yo

Re: Apache2 namespace

2005-07-03 Thread J Matisse Enzer
} } --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/ 415-225-6703 (work/cellphone) 415-401-8325 (home)

Re: The better way to update/write new CPAN Apache modules

2005-05-12 Thread J Matisse Enzer
be in CPAN under Apache2::*, to avoid confusion. The README and INSTALL and perldoc can (and should) mention any Apache::* versions. -Matisse --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

[ANNOUNCE] Apache2::AuthCookieDBI available

2005-04-29 Thread J Matisse Enzer
With the help of Lance P Cleveland there is now an Apache2:: version of AuthCookieDBI. Apache2::AuthCookieDBI premiered at version 2.03 and is essentially the same as Apache::AuthCookieDBI 2.02 but works with mod_perl2. --- Matisse Enzer

Re: Bus error on Mac OS X 10.3.9 while configuring mod_perl-2.0.0-RC5

2005-04-25 Thread J Matisse Enzer
rt the server in the debug mode) ++ | Please file a bug report: http://perl.apache.org/bugs/ | ++ make: *** [run_tests] Error 1 ------- M

Bus error on Mac OS X 10.3.9 while configuring mod_perl-2.0.0-RC5

2005-04-25 Thread J Matisse Enzer
riting Makefile for Apache2::Const Writing Makefile for Apache2_build Writing Makefile for ModPerl::Const Writing Makefile for ModPerl Writing Makefile for ModPerl::XS Bus error ------- Matisse Enzer <[EMAIL PROTECTED]> http://www

Re: Controlling licensed software?

2005-02-20 Thread Matisse Enzer
This sounds like avery workable solution. CPAN is so wonderful :-) On Sun, 20 Feb 2005, Adi Fairbank wrote: > Take a look at Crypt::License on CPAN. I used it a couple years back to do > exactly what you are trying to do. It encrypts your Perl source code and then > decrypts it on the fly. The

Re: Controlling licensed software?

2005-02-20 Thread Matisse Enzer
You probaly need to write some critical portion of your application in a language that can be compiled to object code, like C, otherwise you are giving them the source code and a dishonest client could re-write your code to avoid the license. May I ask why rental? Why not an annual support contrac

Re: Problem using tie with Apache::RequestRec in mod_perl/1.999.21

2005-02-03 Thread J Matisse Enzer
what the older version of OLE::Storage_Lite was doing wrong. :-( -Matisse On Feb 2, 2005, at 5:21 PM, Stas Bekman wrote: J Matisse Enzer wrote: I am using a module that wants to tie to the Apache::RequestRec The following code works in mod_perl/1.99_12 but does not seem to work in mod_perl/1.999.21

Problem using tie with Apache::RequestRec in mod_perl/1.999.21

2005-02-02 Thread J Matisse Enzer
ssl/2.0.52 OpenSSL/0.9.7d mod_perl/1.999.21 Perl/v5.8.1 --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/. 415-225-6703 (work/cellphone) 415-401-8325 (home)

Re: mp2 -"undefined symbol" in error_log - HOWTO

2003-11-17 Thread Matisse Enzer
You are quite welcome. I hope I have more chances to contribute, I feel like I owe a great debt. -Matisse At 9:47 PM -0800 11/14/03, Stas Bekman wrote: Matisse Enzer wrote: Here's a very rough draft of what do do if the error_log includes any "undefined symbol" errors. It&#x

mp2 -"undefined symbol" in error_log - HOWTO

2003-11-14 Thread Matisse Enzer
in which case you would want to make sure that you are configuring and compiling mod_perl with the latest version of apache, for example using the above output, you would do: perl Makefile.PL MP_AP_CONFIG=/usr/local/apache2.0.47 make make test -- -- Matisse Enzer Doodlelab Inc. 415-925-5294 ext. 212 (office) 415-225-6703 (mobile) -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

Re: mp2 - make test - apr/table...FAILED tests 20-21

2003-11-10 Thread Matisse Enzer
s? So we can add it to the docs and point others to it. It's the best that you peruse this thread's data (including the relevant chunks of output that you have posted in your replies). Yes, I will do that this week and post to the list here. -- -----

Re: mp2 - make test - apr/table...FAILED tests 20-21

2003-11-10 Thread Matisse Enzer
http://modperlbook.org http://apache.org http://ticketmaster.com -- -- Matisse Enzer Doodlelab Inc. 415-925-5294 ext. 212 (office) 415-225-6703 (mobile) -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

Re: mp2 - make test - apr/table...FAILED tests 20-21

2003-11-10 Thread Matisse Enzer
0 T apr_table_compress So, when you say "nuke the old one" do you mean remove /usr/local/apache2.0.47/lib/libapr-0.so.0 ? Matisse Enzer wrote: Here'a line from t/logs/error_log /usr/local/apache2.0.47/bin/httpd: relocation error: /usr/local/src/apache/mod_perl-1.99_10/blib/a

Re: mp2 - make test - apr/table...FAILED tests 20-21

2003-11-10 Thread Matisse Enzer
ts !!! port 8529 is in use, cannot determine server pid to shutdown !!! error running tests (please examine t/logs/error_log) [EMAIL PROTECTED] mod_perl-1.99_10]# Matisse Enzer wrote: Anyone have some suggestions for me? -8<-- Start Bug Report 8<-- 1.

Re: mp2 - make test - apr/table...FAILED tests 20-21

2003-11-10 Thread Matisse Enzer
fails is a dual-processor, but I cannot see what difference that would make. Matisse Enzer wrote: Anyone have some suggestions for me? -8<-- Start Bug Report 8<-- 1. Problem Description: apr/table..FAILED tests 20-21 Please app

mp2 - make test - apr/table...FAILED tests 20-21

2003-11-07 Thread Matisse Enzer
nux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 . 3. This is the core dump trace: (if you get a core dump): [CORE TRACE COMES HERE] This report was generated by t/REPORT on Fri Nov 7 17:33:57 2003 GMT. -8<-- End Bug Report --8<-- -- -- Matisse Enzer Doodlelab, Inc 707-431-4300 x212 (office) 415-225-6703 (mobile) -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

mod_perl 2 - Contributing to documentation

2003-10-14 Thread Matisse Enzer
much better state. I will start doing that. If I wanted to add an entry for $r->filename would I modify RequestUtil.pod.orig and send the modified document to the docs-dev mailing list? -- ------ Matisse Enzer Doodlelab Inc. 415-925-5294 ext. 212 (office)

Re: mod_perl 2 - PATH_TRANSLATED, PerlResponseHandler or Filter?

2003-10-14 Thread Matisse Enzer
Thank you very nice! Where should I have looked to figure this out myself? At 11:00 PM -0400 10/13/03, Geoffrey Young wrote: Matisse Enzer wrote: Can I get access to PATH_TRANSLATED in a PerlRepsonseHandler? if you're using the mod_perl API, you can get PATH_TRANSLATED by joining $r->

mod_perl 2 - PATH_TRANSLATED, PerlResponseHandler or Filter?

2003-10-13 Thread Matisse Enzer
or this instead? -- ------ Matisse Enzer Doodlelab Inc. 415-925-5294 ext. 212 (office) 415-225-6703 (mobile)

Re: Using class wide variables under mod_perl is safe?

2003-10-08 Thread Matisse Enzer
the wrong term). So, is this crazy thinking or am I on the right track? Thanks, Matt. -- ------ Matisse Enzer Doodlelab Inc. 415-925-5294 ext. 212 (office) 415-225-6703 (mobile)

Re: mod_perl 2: $r->get_server_port returns wrong value

2003-10-08 Thread Matisse Enzer
he whole server. Thanks again. -- ------ Matisse Enzer Doodlelab Inc. 415-925-5294 ext. 212 (office) 415-225-6703 (mobile)

Re: mod_perl 2: $r->get_server_port returns wrong value

2003-10-08 Thread Matisse Enzer
nix) mod_perl/1.99_10 Perl/v5.8.0) At 4:59 PM -0700 10/8/03, Matisse Enzer wrote: Is it possible that the value returned by $r->get_server_port could be affected by the format or content of the client request? I've got a test case where when i hit the same URL from two different clients I

mod_perl 2: $r->get_server_port returns wrong value

2003-10-08 Thread Matisse Enzer
to me, because I had believed that get_server_port gets its information from the server side only, but perhaps i am mistaken about that. -- ---------- Matisse Enzer Doodlelab Inc. 415-925-5294 ext. 212 (office) 415-225-6703 (mobile)

Re: mod_perl 2: $r->get_server_port returns wrong value under Apache::compat ??

2003-10-06 Thread Matisse Enzer
At 1:20 PM -0700 10/6/03, Stas Bekman wrote: Matisse Enzer wrote: [...] sub handler { warn "Port: ", $_[0]->get_server_port; $server->configure(@_); $server->SUPER::handler(@_); } and got the wrong result. Hmm, is $_[0] an Apache::RequestRec object? If it's a method

Re: mod_perl 2: $r->get_server_port returns wrong value under Apache::compat ??

2003-10-06 Thread Matisse Enzer
code sample I edited the handler() subroutine to be: sub handler { warn "Port: ", $_[0]->get_server_port; $server->configure(@_); $server->SUPER::handler(@_); } and got the wrong result. -- -- Matisse Enzer Doodlelab Inc. 415-925-5294 ext. 212 (office) 415-225-6703 (mobile)

mod_perl 2: $r->get_server_port returns wrong value under Apache::compat ??

2003-10-06 Thread Matisse Enzer
the culprit, and I'd appreciate advice about what kind of thing I should be looking for. I'm running Apache/2.0.47 (Unix) mod_perl/1.99_10 Perl/v5.8.0 -- ------ Matisse Enzer Doodlelab Inc. 415-925-5294 ext. 212 (office) 415-225-6703 (mobile)

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 $sch

Re: mod_perl 2: $r->get_server_port

2003-10-02 Thread Matisse Enzer
5:51 PM -0700 10/2/03, Stas Bekman wrote: 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 (

Re: Apache bandwidth calculating

2003-10-02 Thread Matisse Enzer
/mod_bandwidth.html another would be to look at the thttpd server, which does url and user-based throttling:     http://acme.com/software/thttpd/ -- -- Matisse Enzer Doodlelab Inc. 415-925-5294 ext. 212 (office) 415-225-6703 (mobile)

mod_perl 2: $r->get_server_port

2003-10-02 Thread Matisse Enzer
onf) -- -- Matisse Enzer Doodlelab Inc. 415-925-5294 ext. 212 (office) 415-225-6703 (mobile)

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

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

2003-10-02 Thread Matisse Enzer
1/03, Stas Bekman wrote: Matisse Enzer wrote: my $uri = APR::URI->parse; I want to find out what the scheme (http, https) was for the current request. APR::URI->parse($r->pool, $r->uri)->scheme; I also want to find out (and maybe set) the path_info What's the right way

mod_perl 2: APR::URI scheme and path_info

2003-10-01 Thread Matisse Enzer
do this? -- ------ Matisse Enzer Doodlelab Inc. 415-925-5294 ext. 212 (office) 415-225-6703 (mobile)

Scope of Apache request object and Apache::Session scoping.

2003-10-01 Thread Matisse Enzer
$r->pnotes($auth_name => \%session ); This is under mod_perl 2 I'm doing this in the belief that the request object goes out of scope when Apache finishes handling the request, is this correct? -- ------ Matisse Enzer Doodlelab Inc. 415-925-5294 ext. 212

Re: How to attach a hashref or other data to the request object?

2003-09-30 Thread Matisse Enzer
Thank you. This works just fine. At 3:03 PM -0700 9/29/03, Daisuke Maki wrote: Check out $r->pnotes(). $r->pnotes( OurHash => { foobar => 1 } ); --d Matisse Enzer wrote: Is there an appropriate way in mod_perl 2 for me to take a hashref and somehow add it to the Apache reque

How to attach a hashref or other data to the request object?

2003-09-29 Thread Matisse Enzer
to take a hash created using Apache::Session (a tied hash) and have a reference to that hash be available in the Apache request object for the rest of the request's lifetime. -- ------ Matisse Enzer Hamilton Partners 707-431-4300 ext. 212 (office) 415-

mod_perl developer wanted for part-time project over the next 4-6 weeks

2003-09-23 Thread Matisse Enzer
ess for us. -- ------ Matisse Enzer Hamilton Partners 707-431-4300 ext. 212 (office) 415-225-6703 (mobile)

Re: Use of Apache::Directive in BEGIN block

2003-09-23 Thread Matisse Enzer
Title: Re: Use of Apache::Directive in BEGIN block At 2:30 PM -0700 9/19/03, Stas Bekman wrote: Matisse Enzer wrote: At 11:19 AM -0700 9/19/03, Stas Bekman wrote: Matisse Enzer wrote: Thank you very much. So does it work now?  I wasn't able to get 1.99_09 to install. ...