Apache Perl Sections Woes

2000-10-05 Thread Carlos Ramirez
I'm trying to configure my Apache config file using Perl Sections. I'm stuck in trying to populate a Directory directive with a bunch of "Allow from"s like so: ## Get my "allow froms" from an existing list of ip addresses my $accessfile = '/usr/local/etc/apache_1.3.12/conf/accesscontrol.conf';

Re: $r->path_info() bug?

2000-10-05 Thread Dave Rolsky
On Thu, 5 Oct 2000, Todd Chapman wrote: > HTML::Mason version 0.88 This isn't related to your question but please be advised that there are bugs in 0.88 that make upgrading to 0.89 highly advisable. This question probably belongs on the mason-users list, BTW. Please see http://lists.sourceforg

$r->path_info() bug?

2000-10-05 Thread Todd Chapman
When I request the following URL with netscape: http://www.mydomain.com/mason_root/subdir/B/9/abc The request is handled by a dhandler in /mason_root/subdir Here is the dhandler: Test This is a test. Path_info: <% $r->path_info() %> <%init> $r->content_type('text/html');

Re: More mod-perl as DSO on Solaris (Please help)

2000-10-05 Thread Patrick Durusau
Ricardo, Ricardo Stella wrote: > Here's a solution that seems to be ok for Solaris 8, GCC 2.9.2 and Perl > 5.6 > > * Recompile perl with -Dcc=gcc -Uuselargefiles -Ubincompat5005 > * Recompile Apache with --enable-module=most --enable-share=max > * Recompile mod-perl with USE_APXS=1, EVERYTHING=1

RE: Disable/Enable Persistant Connections On Demand

2000-10-05 Thread Mark Kirkwood
Thanks Aaron, The altered connect call was exactly what I was after...( and it worked as expected - no more database sessions for the authenticating users ). A little more background may explain the odd ( ? ) construction. I wanted to make the design easily portable to different databases - so

RE: CyberCash and mod_perl Experiences

2000-10-05 Thread David Alan Pisoni
At 11.28 -0400 10/2/2000, Ryan Adams wrote: > >Thanks everyone for listening to me rant. I'll keep you posted on what I >come up with. I'm toying >with the idea of writing an CyberCash module for the Business::OnlinePayment >interface. Anyone have >any idea where to start? > >RYAN Actually,

Re: Disable/Enable Persistant Connections On Demand

2000-10-05 Thread Aaron
at a time earlier than now, Mark Kirkwood wrote: > Dear List, > > This may be a stupid question... but anyway... no way. Apache::DBI and DBI kind of cheat and automagically make stuff happen. it's very cool, but it can also be hard to extend or modify for specific situations. > This works

Re: File Upload Issue

2000-10-05 Thread Vivek Khera
> "DK" == David Kenzik <[EMAIL PROTECTED]> writes: DK> I expect this to immediately return to the client the error message and DK> close the connection. Is that the wrong expectation? Yes. DK> What really happens is the logging occurs and then the client uploads the DK> file before the mess

Re: Forking in mod_perl?

2000-10-05 Thread Tim Bishop
On Thu, 5 Oct 2000, Sean D. Cook wrote: > > On Wed, Oct 04, 2000 at 02:42:50PM -0700, David E. Wheeler wrote: > > > Yeah, I was thinking something along these lines. Don't know if I need > > > something as complex as IPC. I was thinking of perhaps a second Apache > > > server set up just to han

test fails with "[warn] [notice] child_init for process..."

2000-10-05 Thread Phil Freed
I've seen this problem reported a half-dozen or so times on this list, but I cannot seem to find a resolution. I've been trying to install mod_perl , but "make test" fails consistently. I'm using perl v5.6.0 , Solaris 5.7 , apache_1.3.12. There are two general classes of failures that I've se

Re: Authentication and Redirection

2000-10-05 Thread Chris Lewis
The Ticket handling code in the Eagle Book shows how you can use redirects and cookies to remember where the user wanted to go. After authenticating, you redirect the user back to where they were trying to go. Which works, as long as you don't have to remember more than the URL the user original

Timing

2000-10-05 Thread Chris Lewis
We're using Apache/modperl as a fairly sophisticated single-signon front end for multiple web servers. I'm trying to put metrics in to log timings of parts of the process. Eg: elapsed times during authentication, authorization etc. Is there any way to time how long a translated-to-proxy request

HTML::Mason/ AxKit / Apache::Filter

2000-10-05 Thread Barry Hoggard
Does anyone have this combination working? I'm using Mason 0.89, Filter 1.011. I'm getting my files twice, and headers twice. I have asked on the Mason and AxKit mailing lists, but we haven't been able to figure it out. Here's the info from my other postings: I'm trying to debug using HTML::M

apache-1.3.12 & mod_perl-1.24: Still "Undefined subroutine CGI::thead"

2000-10-05 Thread Ulrich Windl
I have already reported this bug before for an older version of apache and mod_perl, but the problem is still there. The CGI version is that of perl-5.005. My Perl CGI script occasionally produces the above error (Undefined subroutine CGI::thead). Restarting or reloading Apache will fix the p

Re: Forking in mod_perl? (benchmarking)

2000-10-05 Thread Bill Moseley
I'm working with the Swish search engine (www.apache.org and the guide use it). Until this month, SWISH could only be called via a fork/exec. Now there's an early C library for swish that I've built into a perl module for use with mod_perl. Yea! No forking! I decided to do some quick benchmark

RE: Authentication and Redirection

2000-10-05 Thread Geoffrey Young
if you use a script/handler to create the login page, and don't just serve up a static page, then you can use $r->prev->uri to figure out what url triggered the 403, pass that to your authentication scheme as a hidden field, and do whatever with it...   HTH   --Geoff -Original Message-

File Upload Issue

2000-10-05 Thread David Kenzik
I apologize if this has been covered, but I wasn't able to locate anything explicit in the archives pertaining to my situation. I'm using Apache::Request 1.31 to handle file uploads, which work just fine. I can upload all day. I'm also using the apr->parse method to grab status on the upload ca

Re: Authentication and Redirection

2000-10-05 Thread Ian Frawley
I have looked at the example and tried to adapt, the problem is that I will be serving WAP phones as well as PC's which don't like cookies.   Cheers - Original Message - From: Geoffrey Young To: 'Ian Frawley' ; [EMAIL PROTECTED] Sent: Thursday, October 05, 2000 10:

RE: Authentication and Redirection

2000-10-05 Thread Geoffrey Young
the eagle book has an example of this in chapter 6 (cookie based access control)   I've used an init handler to glean $r->prev->uri and use that in the handler that implements the login page for Apache-AuthCookie, which works as well...   HTH   --Geoff -Original Message-From: Ian F

RE: Apache::Request and parameters = 0

2000-10-05 Thread Geoffrey Young
> -Original Message- > From: Matt Sergeant [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 05, 2000 10:53 AM > To: Geoffrey Young > Cc: Dana C. Chandler III; [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: Apache::Request and parameters = 0 > [snip] > > ok, I see that. Apach

RE: Apache::Request and parameters = 0

2000-10-05 Thread Matt Sergeant
On Thu, 5 Oct 2000, Geoffrey Young wrote: > > package FooTest; > > use Apache::Constants; > > use Apache::Reload; > > > > sub handler { > > my $r = shift; > > $r->send_http_header; > > print "Args: ", scalar $r->args, "\n"; > > return OK; > > } > > > > 1; > > >

RE: Apache::Request and parameters = 0

2000-10-05 Thread Geoffrey Young
> -Original Message- > From: Matt Sergeant [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 05, 2000 10:26 AM > To: Geoffrey Young > Cc: Dana C. Chandler III; [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: Apache::Request and parameters = 0 [snip] > > You're right... I was reme

Re: Make test error!!

2000-10-05 Thread Ricardo Stella
I think you are missing parameters when creating the make file: > > => perl Makefile.PL USE_DSO=1 EVERYTHING=1 PERL_DEBUG=1 Where's the apache src path in the above ??? Are you using the 'flexible' method, or the all in one ? If you are using the flexible method (with or without DSO suppor

Authentication and Redirection

2000-10-05 Thread Ian Frawley
Can anyone help me I have been scratching my head with this problem for a while and I can't figure a solution out.   I have written a CGI script that is executed from an ErrorDocument 403 so that when a user tries to access a secure web page from the net they are bounced to a welcome page and

Re: More mod-perl as DSO on Solaris (Please help)

2000-10-05 Thread Ricardo Stella
Here's a solution that seems to be ok for Solaris 8, GCC 2.9.2 and Perl 5.6 * Recompile perl with -Dcc=gcc -Uuselargefiles -Ubincompat5005 * Recompile Apache with --enable-module=most --enable-share=max * Recompile mod-perl with USE_APXS=1, EVERYTHING=1 My .02... Patrick Durusau wrote: > > He

RE: Apache::Request and parameters = 0

2000-10-05 Thread Matt Sergeant
On Thu, 5 Oct 2000, Geoffrey Young wrote: > however, just for clarity, I don't see how this is a bug in Apache::Request > (as you originally pointed out)... > > #!/usr/bin/perl > use Apache::Request; > my $r = Apache::Request->new(shift); > my $value = $r->param('foo'); > > $r->send_http_header

RE: Apache::Request and parameters = 0

2000-10-05 Thread Geoffrey Young
> -Original Message- > From: Matt Sergeant [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 05, 2000 9:57 AM > To: Dana C. Chandler III > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Apache::Request and parameters = 0 > > > On Thu, 5 Oct 2000, Dana C. Chandler III wrote:

Re: A really really weird use for subrequests...

2000-10-05 Thread Luis 'Champs' de Carvalho
On Wed, 4 Oct 2000, Jim Winstead wrote: >On Oct 04, Luis 'Champs' de Carvalho wrote: >> Can i make the mod_proxy redirect using a sub-request, and still >> have the contents (and headers, and everything else) to let apache handle >> the response phase ? >no. That's great.

Segmentation faults

2000-10-05 Thread Daniel Grunblatt
This has been happening for a while: $ tail -44 server_log [Fri Sep 22 14:51:12 2000] [notice] Apache/1.3.12 (Unix) mod_perl/1.24 configured -- resuming normal operations [Tue Sep 26 18:20:13 2000] [notice] child pid 533 exit signal Segmentation fault (11) [Tue Sep 26 18:24:58 2000] [notice] chil

Re: Apache::Request and parameters = 0

2000-10-05 Thread Matt Sergeant
On Thu, 5 Oct 2000, Dana C. Chandler III wrote: > Yes, in particular, > > $value = $r->param('name') || ""; Or worse, $r->param('name') || "3"; # default but true Even I'm guilty of that one sometimes :-) -- ** Director and CTO ** ** AxKit.com Ltd ** ** XML Application Serving ** ** ht

Re: redirecting large POSTs

2000-10-05 Thread Kip Cranford
On: Thu, 05 Oct 2000 09:45:30 EDT Drew Taylor wrote: > >Dare I ask what that 100MB consists of? That's a lot of uploaded data... >:-) > Pr0n, mostly :) Seriously, though, most of the information consists of CAD binary data (I work in the automotive industry), so we're talking large parts, ass

Re: redirecting large POSTs

2000-10-05 Thread Drew Taylor
Kip Cranford wrote: > > I did this because in my system, I routinely need to allow file uploads > of 100MB or more. This is too unwieldy, IMO, to upload, store, > retrieve, etc. So far, this has worked like a charm. Dare I ask what that 100MB consists of? That's a lot of uploaded data... :-)

Re: redirecting large POSTs

2000-10-05 Thread Kip Cranford
On: Wed, 04 Oct 2000 15:24:27 PDT [EMAIL PROTECTED] wrote: > >I was thinking about saving the posted data to a temporary file and >reading it back in after the login succeeds, but this seems messy and >error-prone. Has anyone else had this problem? Are there any modules >(maybe session mgmt stuff

Re: Apache::Request and parameters = 0

2000-10-05 Thread Dana C. Chandler III
Matt Sergeant wrote: > > On Thu, 5 Oct 2000, Dana C. Chandler III wrote: > > > In my limited experience, it is Perl in general that treats the value 0, > > in a query string as the empty string. In all of the scripts I have > > written, if 0 is possible as a param value, I have to explicity che

Re: Apache::Request and parameters = 0

2000-10-05 Thread John Reid
Matt Sergeant wrote: > > On Thu, 5 Oct 2000, Dana C. Chandler III wrote: > > > In my limited experience, it is Perl in general that treats the value 0, > > in a query string as the empty string. In all of the scripts I have > > written, if 0 is possible as a param value, I have to explicity che

Re: Apache::Request and parameters = 0

2000-10-05 Thread Matt Sergeant
On Thu, 5 Oct 2000, Dana C. Chandler III wrote: > In my limited experience, it is Perl in general that treats the value 0, > in a query string as the empty string. In all of the scripts I have > written, if 0 is possible as a param value, I have to explicity check > for 0. This is only the ca

Re: Apache::Request and parameters = 0

2000-10-05 Thread Dana C. Chandler III
Matt Sergeant wrote: > > On Thu, 5 Oct 2000, John Reid wrote: > > > Hi guys > > > > Has anyone any experience of passing a 0 as a parameter value through > > Apache::Request. I am passing a QUERY_STRING like > > ?param1=value1¶m2=0¶m3=value3. It appears that the 0 is being > > interpretted as an

RE: Problems with Implementing Virtual Hosts

2000-10-05 Thread Geoffrey Young
> -Original Message- > From: Ian Jones [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 05, 2000 3:10 AM > To: [EMAIL PROTECTED] > Subject: Problems with Implementing Virtual Hosts > > > Hi, > We are a site new to Apache and Perl, using IBM's > Websphere product that runs Apache ve

Re: [SOT] mod_perl on IBM s390

2000-10-05 Thread Malcolm Beattie
Sean D. Cook writes: > I know that rescently IBM has been successfull in running thousands of > instances of linux on the H30-H70 series machines. I am wondering if > anyone is using one of these beasts to run mod_perl in a production > environment and what kind of millage you are getting. I'm

Re: Make test error!!

2000-10-05 Thread Andrei A. Voropaev
Hi! Just to confirm that this is not a single case. I tried the same with apache_1.3.12 and it didn't work. Exactly the same error messages. Finally I gave up and compiled static version. That works without any problem. Andrei On Fri, Sep 15, 2000 at 10:45:32AM +0200, François Chenais wrote: >

Re: redirecting large POSTs

2000-10-05 Thread steven
On Thu, 5 Oct 2000, Sean D. Cook wrote: > sub destroySession { > delete session or mark for deletion > } If you manage this with one of the IPC::Share* modules and don't get munged shared memory segment errors, I'd like to know how. Cheers, -- steven

[SOT] mod_perl on IBM s390

2000-10-05 Thread Sean D. Cook
I know that rescently IBM has been successfull in running thousands of instances of linux on the H30-H70 series machines. I am wondering if anyone is using one of these beasts to run mod_perl in a production environment and what kind of millage you are getting. Thanks in advance for you input.

Re: redirecting large POSTs

2000-10-05 Thread Sean D. Cook
On Wed, 4 Oct 2000 [EMAIL PROTECTED] wrote: > I have an authentication scheme which checks every request for a valid > cookie, and if your session has timed out redirects to a login page. After > logging in, the request is resubmitted as a GET. This works great except > when the original post i

Re: Forking in mod_perl?

2000-10-05 Thread Sean D. Cook
> On Wed, Oct 04, 2000 at 02:42:50PM -0700, David E. Wheeler wrote: > > Yeah, I was thinking something along these lines. Don't know if I need > > something as complex as IPC. I was thinking of perhaps a second Apache > > server set up just to handle long-term processing. Then the first server > >

Re: Apache::Request and parameters = 0

2000-10-05 Thread Matt Sergeant
On Thu, 5 Oct 2000, John Reid wrote: > Hi guys > > Has anyone any experience of passing a 0 as a parameter value through > Apache::Request. I am passing a QUERY_STRING like > ?param1=value1¶m2=0¶m3=value3. It appears that the 0 is being > interpretted as an empty string. Is this a bug/expected b

Apache::Request and parameters = 0

2000-10-05 Thread John Reid
Hi guys Has anyone any experience of passing a 0 as a parameter value through Apache::Request. I am passing a QUERY_STRING like ?param1=value1¶m2=0¶m3=value3. It appears that the 0 is being interpretted as an empty string. Is this a bug/expected behaviour or am I looking in completely the wrong a

estricting dir contents per user

2000-10-05 Thread rendhalver
hi guys got a query that may be easy to solve maybe not i am working on a project in mod_perl and php we are intending to use mod_dav as a publishing tool i have written a custom auth module for determining publish rights i was wondering if it is possible to restrict what a user sees in a direct

Problems with Implementing Virtual Hosts

2000-10-05 Thread Ian Jones
Hi, We are a site new to Apache and Perl, using IBM's Websphere product that runs Apache version 1.3.7. Trying to implement Virtual hosts with little success I have attached what we have added to the conf file. Main question is can apache handle multiple virtual hosts using the same IP address