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
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
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
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.
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
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
}
}
---
Matisse Enzer <[EMAIL PROTECTED]>
http://www.matisse.net/ - http://www.eigenstate.net/
415-225-6703 (work/cellphone)
415-401-8325 (home)
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/
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
rt the server in the debug mode)
++
| Please file a bug report: http://perl.apache.org/bugs/ |
++
make: *** [run_tests] Error 1
-------
M
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
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
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
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
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)
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
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
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.
--
-----
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
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
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.
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
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
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)
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->
or this instead?
--
------
Matisse Enzer
Doodlelab Inc.
415-925-5294 ext. 212 (office)
415-225-6703 (mobile)
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)
he whole server. Thanks again.
--
------
Matisse Enzer
Doodlelab Inc.
415-925-5294 ext. 212 (office)
415-225-6703 (mobile)
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
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)
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
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)
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)
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
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 (
/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)
onf)
--
--
Matisse Enzer
Doodlelab Inc.
415-925-5294 ext. 212 (office)
415-225-6703 (mobile)
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
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
do this?
--
------
Matisse Enzer
Doodlelab Inc.
415-925-5294 ext. 212 (office)
415-225-6703 (mobile)
$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
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
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-
ess for us.
--
------
Matisse Enzer
Hamilton Partners
707-431-4300 ext. 212 (office)
415-225-6703 (mobile)
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.
...
45 matches
Mail list logo