Re: PerlInitHandler and PerlSetEnv

2001-07-10 Thread Gerald Richter
> > > > There is no "directory, .htaccess" in the context and that's like it really > > behaves. (unless they changed it in a very recent version and didn't update > > the docs, which I don't expect) > > > > PerlSetEnv is the only chance to have different values in different > > directories. > > i

Re: push_handlers and PerlAuthenHandler troubles [second try]

2001-07-10 Thread Doug MacEachern
On Tue, 26 Jun 2001, Bolt Thrower wrote: > My apologies if you've seen this twice. > > For a particular Location, I'd like to selectively (i.e., based on > arbitrary criteria) determine whether a visitor needs authentication. > So I set up a Location section in httpd.conf as follows: > Pe

Re: swapping of mod_perl parent process / mlockall()

2001-07-10 Thread Doug MacEachern
On Tue, 26 Jun 2001, Adi Fairbank wrote: > > Is it correct that when the Apache/mod_perl parent process swaps to disk, a > large part of it (swapped pages) becomes unshared? Even after the kernel > restores the pages from swap, do they remain unshared? So once the parent > process becomes unsh

Re: help about ap_pool in Perl

2001-07-10 Thread Doug MacEachern
On Tue, 10 Jul 2001, Alberto Canzi wrote: > > Hi I need to use the ap_pool structure. In my Apache Module writing book > is explained how to use it in C but nothing is said about using it in > Perl. > > How does it work ? How may I use it in Perl? what do you need to use it for from Perl? much

Re: duplicate libperl.so causes problems on Tru64

2001-07-10 Thread Doug MacEachern
On Tue, 10 Jul 2001, Dave Hill wrote: > > Hi, > I am using mod_perl-1.25_01 on Tru64 unix with apxs. > > The default packaging creates the DSO mod_perl as libperl.so. This > causes problems on Tru64 unix as the loader cannot differentiate between > libperl.so which is part of the PERL distr

Re: Knowing the current VirtualHost at server startup

2001-07-10 Thread Doug MacEachern
On Tue, 10 Jul 2001, Robin Berjon wrote: > Hi, > > I've been looking around for a way for a section (or code called from > it, or perhaps even loaded through PerlModule) to know the current > VirtualHost in which it is, at server startup (ie without a request object > handy). > > Apache->se

boot_IO error

2001-07-10 Thread Matt Glosson
Hello. I've searched the internet and found many things relating to this, but I thought I would present my own specific problem. I'm trying to install mod_perl with IBM HTTP Server (which is really just apache 1.3.12) on AIX 4.3.3. Everything installs fine, but when I tried to use Net::LDAP, apac

Re: send_httpd_headers

2001-07-10 Thread Doug MacEachern
On Tue, 10 Jul 2001, Doug MacEachern wrote: > unless ($r->header_in('Content-type')) { i meant header_out, not header_in

Re: can't start apache-1.3.20 with mod_perl and Mason

2001-07-10 Thread Doug MacEachern
On Mon, 9 Jul 2001, Louis-David Mitterrand wrote: > Hi, > > After "upgrading" my installation to Apache-1.3.20 and mod_perl-1.25 as > as a module I can't start apache anymore when httpd.conf contains: > > PerlRequire /etc/apache/perl/handler.pl > > And that file (for debugging purposes)

Re: send_httpd_headers

2001-07-10 Thread Doug MacEachern
On Sun, 8 Jul 2001, Brooklyn Linux Solutions CEO wrote: > Is there a way to know that headers have already been sent > before send headers out? you can check for things that should be empty until send_http_header is called, e.g. unless ($r->header_in('Content-type')) { #header has not been

Re: upgrading mod_perl/CGI.pm shows some weirdness

2001-07-10 Thread Doug MacEachern
On 6 Jul 2001, Peter Rooney wrote: > machine 1: > CGI.pm version 2.46 > machine 2 (the new machine): > CGI.pm version 3.02 3.02 is alpha, the README says: Version 3 of CGI.pm is in alpha state. It has significant performance improvements over the 2.X series, but is not stable. If you fin

Re: Possible bug with ModPerl 1.25 and Escape_uri

2001-07-10 Thread Doug MacEachern
On Fri, 6 Jul 2001, Stef Telford wrote: > Hello, > I hope this is the right place to put this. I have some code that takes data > from a database and encrypts it via Blowfish and CBC. Not a problem so far, > the problems comes with sending it to the client. ... > Now, if i look at t

Re: nothing-or-all behave of perl module

2001-07-10 Thread Mike & Christine
I'm no expert but I believe if you do what you want to do and return DECLINED apache will pick it up from there. According to the book Writing Apache Modules with Perl an C: "DECLINED The handler has decided it doesn't want to handle the request. Apache will act as if the subroutine were never

nothing-or-all behave of perl module

2001-07-10 Thread Surat Singh Bhati
hi members, While we use a perl handler at any stage handle that apache phase using our module, can Apache do its all default processing for the same stage, or it works on nothing-or-all approchm. I want to modify the PerlTransHandler slightly, but I dont want to rewrite all the processing

Re: [ModPerl] missing POST args mystery

2001-07-10 Thread Ed Loehr
Ed Loehr wrote: > > > >I'm stumped ... > > >In a nutshell, my problem is that POSTed form key-value pairs are > > >intermittently not showing up in the request object inside my handler > > >subroutine. As I was puzzling over this, I saw this error message in the logs... (offline mode: e

duplicate libperl.so causes problems on Tru64

2001-07-10 Thread Dave Hill
Hi, I am using mod_perl-1.25_01 on Tru64 unix with apxs. The default packaging creates the DSO mod_perl as libperl.so. This causes problems on Tru64 unix as the loader cannot differentiate between libperl.so which is part of the PERL distribution and libperl.so which is the Apache DSO. I fo

Re: Apache::SimpleTemplate (don't do it!)

2001-07-10 Thread Joachim Zobel
At 20:19 09.07.01 +0200, you wrote: >It's your decision, but I think you waste your time while you make all the >experiences the other had made during the last 3-5 years. I think it would >more helpfull if you help to improve the other modules (for example makeing >them easier to install etc.) >

Re: !!!reevaluating part of the module

2001-07-10 Thread Joshua Chamas
raptor wrote: > > hi, > > What I want is access from module to executed-at-the-moment script namespace > i.e. > > the module Utils.pm : > > $"abc.asp"::buffer .= 'hello.'; > > PS. It seems to work only if into the script I'm clearing $Utils::buffer at > the begining of the script, but this i

Knowing the current VirtualHost at server startup

2001-07-10 Thread Robin Berjon
Hi, I've been looking around for a way for a section (or code called from it, or perhaps even loaded through PerlModule) to know the current VirtualHost in which it is, at server startup (ie without a request object handy). Apache->server returns the main server object (or so it seems, that

Re: detecting ssl

2001-07-10 Thread Issac Goldstand
> > > > -Original Message- > > > > From: Issac Goldstand [mailto:[EMAIL PROTECTED]] > > > > Sent: Tuesday, July 10, 2001 10:44 AM > > > > To: Geoffrey Young; 'João Pedro Gonçalves'; brian moseley > > > > Cc: [EMAIL PROTECTED] > > > > Subject: Re: detecting ssl > > > > > > > > > > > > Not n

Re: detecting ssl

2001-07-10 Thread Issac Goldstand
> > > > -Original Message- > > > > From: Issac Goldstand [mailto:[EMAIL PROTECTED]] > > > > Sent: Tuesday, July 10, 2001 10:44 AM > > > > To: Geoffrey Young; 'João Pedro Gonçalves'; brian moseley > > > > Cc: [EMAIL PROTECTED] > > > > Subject: Re: detecting ssl > > > > > > > > > > > > Not n

RE: detecting ssl

2001-07-10 Thread Geoffrey Young
> -Original Message- > From: Issac Goldstand [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 10, 2001 1:07 PM > To: Geoffrey Young > Cc: [EMAIL PROTECTED] > Subject: Re: detecting ssl > > > > > -Original Message- > > > From: Issac Goldstand [mailto:[EMAIL PROTECTED]] > > > Sen

Re: RFC: Logging used Perl Modules (was Re: API Design Question)

2001-07-10 Thread James G Smith
Doug MacEachern <[EMAIL PROTECTED]> wrote: >On Tue, 3 Jul 2001, James G Smith wrote: > >> The current code I have uses %INC, but I wanted to write >> something like the following: >> >> sub use : immediate { >> # do stuff here if logging >> return CORE::use(@_); >> } > >you could just overri

Re: Accessing server config during parent startup

2001-07-10 Thread Robin Berjon
On Tuesday 10 July 2001 05:42, Doug MacEachern wrote: > On Mon, 9 Jul 2001, Robin Berjon wrote: > > cfg = (axkit_dir_config *) > > ap_get_module_config(s->module_config, &XS_AxKit); > > try s->lookup_defaults instead of s->module_config > > see also: modperl-2.0/src/modules/perl/modperl_pc

Re: detecting ssl

2001-07-10 Thread Issac Goldstand
> > -Original Message- > > From: Issac Goldstand [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, July 10, 2001 10:44 AM > > To: Geoffrey Young; 'João Pedro Gonçalves'; brian moseley > > Cc: [EMAIL PROTECTED] > > Subject: Re: detecting ssl > > > > > > Not necessarily. I could easily set up a

!!!reevaluating part of the module

2001-07-10 Thread raptor
hi, What I want is access from module to executed-at-the-moment script namespace i.e. the module Utils.pm : $"abc.asp"::buffer .= 'hello.'; the script xxx.asp : use Utils; use vars qw($buffer); print $buffer == How can I do this. Currently I'm doing something like this : the mo

RE: announce: mod_perl-1.25_01

2001-07-10 Thread Doug MacEachern
On Tue, 10 Jul 2001, Christian Gilmore wrote: > Hrm. Ok, I'll have to release new versions of my modules that have tests > for mod_perl < 1.26. At what release level do you expect this patch to be > committed? well, i don't want to make any promises like i did for 1.26 :)

Re: PerlInitHandler and PerlSetEnv

2001-07-10 Thread Doug MacEachern
On Tue, 10 Jul 2001, Gerald Richter wrote: > The docs says: > > SetEnv directive > Syntax: SetEnv variable value > Context: server config, virtual host > Status: Base > Module: mod_env > Compatibility: SetEnv is only available in Apache 1.1 and later. > Sets an environment variable, which is th

Re: Apache::SimpleTemplate (don't do it!)

2001-07-10 Thread Patrick
On Mon, Jul 09, 2001 at 02:07:21PM -0400, Perrin Harkins took time to write: > > I think that CGI::FastTemplate does all of that. > > Please have a look at it, and see if everything you need is not > > already in it. > > It's a good module for CGI, since it doesn't rely on caching/compiling > tec

RE: PerlInitHandler and PerlSetEnv

2001-07-10 Thread Michael Barry
Doug, Thanks for the quick turn around. The patch works great. -MikeB. -Original Message- From: Doug MacEachern [mailto:[EMAIL PROTECTED]] this patch should fix the problem. you should also be able to s/PerlSetEnv/SetEnv/g, unless Embperl needs these variables before the fix

RE: detecting ssl

2001-07-10 Thread Geoffrey Young
> -Original Message- > From: Issac Goldstand [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 10, 2001 10:44 AM > To: Geoffrey Young; 'João Pedro Gonçalves'; brian moseley > Cc: [EMAIL PROTECTED] > Subject: Re: detecting ssl > > > Not necessarily. I could easily set up any virtualhost

new CGI.pm and multipart/form-data

2001-07-10 Thread Miroslav Madzarevic
Had the same problem two days ago, solved it by copying old CGI.pm (luckily we have few computers running linux). Does Cpan have old module versions ? I believe so ...

RE: detecting ssl

2001-07-10 Thread Joe Breeden
Looking at the port number still doesn't ensure that the request is a SSL request. I believe the mention to looking at $ENV{HTTPS} is the best couse as that is set when the connection is a SSL connection and not just a connection to port 443. --Joe Breeden -- Sent from my

[Solved] ASP.pm and multipart/form .. error

2001-07-10 Thread raptor
hi, I moved to CGI.pm 2.74 and everything is OK now :") So be aware that u may have problems with the following config : RedHat 7.1 + Apache 1.3.20/mod_perl 1.25, ASP.pm, CGI ver 3.x CGI 3.01 even gives error on /compilation test. CGI 3.02 doesn't give this error HtH = iVAN [EMAIL PROTEC

RE: announce: mod_perl-1.25_01

2001-07-10 Thread Christian Gilmore
Hrm. Ok, I'll have to release new versions of my modules that have tests for mod_perl < 1.26. At what release level do you expect this patch to be committed? Regards, Christian > -Original Message- > From: Doug MacEachern [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 09, 2001 10:37 PM

help about ap_pool in Perl

2001-07-10 Thread Alberto Canzi
Hi I need to use the ap_pool structure. In my Apache Module writing book is explained how to use it in C but nothing is said about using it in Perl. How does it work ? How may I use it in Perl? Many Thanks -- Alberto Canzi OpenFor s.r.l. e-mail: [EMAIL PROTECTED]

Re: detecting ssl

2001-07-10 Thread Perrin Harkins
> no need to do a lookup or rely on PerlSetupEnv On I wouldn't think... > > my $ssl = Apache::URI->parse($r)->scheme =~ m/^https/; Or maybe just look at the port # of the request. - Perrin

Re: detecting ssl

2001-07-10 Thread Issac Goldstand
Not necessarily. I could easily set up any virtualhost on port 443 which will be accessable by https://nasty.servername/ but will, in reality, not necessarily be over a secure connection. $ENV{HTTPS}, on the other hand, is set by mod_ssl, and is therefore a better sign to know that the connectio

Re: [CGI.pm] ASP.pm and multipart/form .. error

2001-07-10 Thread raptor
hi again, I've made some tests and debuging, the problem seems to be in CGI module... first of all in eg/file_upload.asp this : print $q->start_multipart_form(); returns this : do U see no POST (the interesting thing is that $r->method returns GET in this case i didn't knowed that :") )..

help about ap_pool in Perl

2001-07-10 Thread Alberto Canzi
Hi I need to use the ap_pool structure. In my Apache Module writing book is explained how to use it in C but nothing is said about using it in Perl. How does it work ? How may I use it in Perl? Many Thanks -- Alberto Canzi OpenFor s.r.l. e-mail: [EMAIL PROTECTED]

Re: Tutorials Need To Learn More

2001-07-10 Thread Matt Sergeant
On Fri, 6 Jul 2001, Purcell, Scott wrote: > Hello, > I am working with mod_perl and apache on NT (No ripping please ... it is a > political issue here at my work.). > Anyway, I have been trying to learn more about taking advantage of handlers, > etc. I purchased the book "Writing Apache Modules w

RE: detecting ssl

2001-07-10 Thread Geoffrey Young
> -Original Message- > From: João Pedro Gonçalves [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 10, 2001 9:08 AM > To: brian moseley > Cc: [EMAIL PROTECTED] > Subject: Re: detecting ssl > > > This approach should be ok: > > my $s = $r->lookup_uri($r->uri); > my $ssl = $s->subproces

Re: detecting ssl

2001-07-10 Thread João Pedro Gonçalves
This approach should be ok: my $s = $r->lookup_uri($r->uri); my $ssl = $s->subprocess_env('HTTPS'); I looked at this a while back and this is usually set internally in apache by the ssl implementation. João Pedro brian moseley wrote: > > warning: these may be silly questions. but i've

detecting ssl

2001-07-10 Thread brian moseley
warning: these may be silly questions. but i've looked through the guide and not found the answers, so hopefully they're not that silly. how can i test in a content handler if the request was received over an ssl connection? do i have to look for an environment variable? is there a test that wor

Re: announce: mod_perl-1.25_01

2001-07-10 Thread Matt Sergeant
On Fri, 6 Jul 2001, Doug MacEachern wrote: > adjust perl_clear_symtab() to deal properly bleedperl's version of > cv_undef() (which broke modules with directive handlers) > thanks to Geoffrey Young for the spot FWIW, perl_clear_symtab is the only part of config directives now that cause segfault

Install problems with Apache 1.3.12 - Raven SSL 1.4.1 - mod_perl 1.25 and perl 5.6.x

2001-07-10 Thread Kurt Hansen
Hello, My apache segfaults when I start it in SSL mode and a page is accessed. If it is started in standard mode, it runs fine. I've been able to create a stable apache using apache 1.3.12-Raven 1.4.1-mod_perl 1.24 and perl 5.005_3. I think the problem is more in the perl version than the mod_pe