Hi All,
I'm using Apache::Session::DB_File to manage some sessions via a mod_perl2
handler and Apache2. I'm running into difficulties trying to read stored data
in the sessions db while writing a cleanup cron job to remove old sessions.
The following code snippet illustrates the problem:
use
How about a little perl string manipulation?
#my $a = 'key1=value1key2=key3=value3';
my $a = 'key1=value1key2key3=value3';
my $b = join , map { my $c = ($_ =~ m/(\S+)=(\S*)?/o) ? $_ : $_=; $c; }
split , $a;
print a= $a\nb= $b\n;
-James
-Original Message-
From: Randolf Richardson
I had to bolt on an input servlet filter to tomcat once. To do this I had to
write the servlet filter code and then add filter and filter-mapping tags
to the application WEB-INF/web.xml file.
-James
-Original Message-
From: Tim Watts [mailto:t...@dionic.net]
Sent: Thursday, July 14,
I think you need to do a redirect. From within your mod_perl handler try
something like this:
$r-content_type(text/plain);
$r-headers_out-set(Location=$url);
return Apache2::Const::HTTP_TEMPORARY_REDIRECT;
From: Jerry Pereira [mailto:online.je...@gmail.com]
Sent: Monday, July 11,
This page describes pretty well how to set up custom configuration directives;
perhaps helpful?
http://perl.apache.org/docs/2.0/user/config/custom.html
-James
From: Jerry Pereira [mailto:online.je...@gmail.com]
Sent: Monday, July 11, 2011 5:08 PM
To: modperl@perl.apache.org
Subject: Best
: James B. Muir; Jerry Pereira; modperl@perl.apache.org
Subject: Re: Best approach to store Application Configuration
On Mon, Jul 11, 2011 at 2:23 PM, Michael Peters mpet...@plusthree.com wrote:
On 07/11/2011 05:16 PM, James B. Muir wrote:
This page describes pretty well how to set up custom
Getting back to basics... Are you sure that your build of Apache and perl went
well? Have you scrutinized the logs you created when you built perl and apache
for any surprising error messages?
-James
-Original Message-
From: William Bulley [mailto:w...@umich.edu]
Sent: Tuesday, June
In order to pass an environment variable via mod_jk to tomcat you need to set
the JkEnvVar in your jk.conf file. For example,
JkEnvVar REMOTE_USER %{REMOTE_USER}
-James
From: Kim Goldov [mailto:kgol...@gmail.com]
Sent: Thursday, May 26, 2011 8:24 PM
To: modperl@perl.apache.org
Subject:
Hi All,
In a modperl2 handler, using Apache2::Cookie, I have code as follows to fetch
the names of the requests cookies:
my @cookie_names = (eval { $cookie_jar-cookies() });
if ($@) { _oops(Could not parse cookies blah blah.); }
I understand that with this code I either get all of the cookie
Ah, that looks simpler. Thanks.
-James
-Original Message-
From: Morten Bjørnsvik [mailto:morten.bjorns...@experian-da.no]
Sent: Friday, April 29, 2011 3:01 AM
To: James B. Muir; modperl@perl.apache.org
Subject: RE: libapreq2 build to /usr/lib64
Hi
I use the following when compiling
Hello,
I am receiving the following message from Apache2 after installing libapreq2
and Apache2::Request:
/usr/sbin/apachectl -t
httpd: Syntax error on line 201 of /etc/httpd/conf/httpd.conf: Cannot load /etc/
httpd/modules/mod_apreq2.so into server: libapreq2.so.3: cannot open shared obje
ct
I followed this lead earlier to today but it did not lead anywhere in this
case. Thanks for suggesting it.
Fortunately I did find the solution. I added --libdir=/usr/lib64 to the
./configure:
#!/bin/bash
cd /usr/local/src/libapreq2-2.13
env LDFLAGS=-L/usr/lib64 -R/usr/lib64 -lexpat
Hello,
I am using the excellent Apache2::Request module.
I'm writing a mod_perl2 authen handler. I'd like to be able to modify the value
of, or delete, a parameter and then allow the request to be further processed
by the mod_jk response handler.
Based on my reading it looks like it should be
I've got Apache2::Request working and POST requests are working very nicely.
Thanks for steeing me in the right direction!
-James
From: Joe Schaefer [joe_schae...@yahoo.com]
Sent: Thursday, January 27, 2011 11:12 AM
To: James B. Muir; modperl@perl.apache.org
Hello,
I am writing a perl authentication module for Apache2 that must inspect some
request parameters before authorizing the requestor and forwarding the request
to a tomcat server via mod_jk.
With the GET request method this is easy, I can inspect the parameters using
$r-args and forward
Hi, I am trying to build libapreq2 so that I may use it with Apache2 and
mod_perl. I'm on a Solaris 10 system. The version of Apache I am using is old:
./bin/apachectl -v
Server version: Apache/2.0.59
Server built: Aug 22 2006 11:38:34
I receive the following surprising errors during the
16 matches
Mail list logo