Apache::Session::DB_File cleanup issue

2012-04-03 Thread James B. Muir
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

FW: Cannot retrieve empty keys from request using Apache2::Request.param

2012-01-03 Thread James B. Muir
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

RE: mod_perl output filter and mod_proxy, mod_cache

2011-07-14 Thread James B. Muir
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,

RE: Changing browser URL based on condition

2011-07-11 Thread James B. Muir
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,

RE: Best approach to store Application Configuration

2011-07-11 Thread James B. Muir
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

RE: Best approach to store Application Configuration

2011-07-11 Thread James B. Muir
: 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

RE: apache2 or mod_perl2 oddball error

2011-06-21 Thread James B. Muir
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

RE: set environment variables in tomcat

2011-05-27 Thread James B. Muir
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:

Apache2::Cookie and cookie names

2011-05-19 Thread James B. Muir
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

RE: libapreq2 build to /usr/lib64

2011-04-29 Thread James B. Muir
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

libapreq2 build to /usr/lib64

2011-04-28 Thread James B. Muir
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

RE: libapreq2 build to /usr/lib64

2011-04-28 Thread James B. Muir
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

Can't locate object method STORE via package APR::Request::Param::Table

2011-02-25 Thread James B. Muir
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

RE: POST method and PerlAuthenHandler

2011-02-02 Thread James B. Muir
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

POST method and PerlAuthenHandler

2011-01-27 Thread James B. Muir
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

build of libapreq2 fails

2011-01-27 Thread James B. Muir
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