PerlTransHandler

1999-10-18 Thread William Deegan
How can I change the environment variables that get passed to a perl script running under Apache::Registry from a PerlTransHandler? I'm using the PerlTransHandler to do a sort of dynamic mod_rewrite functionality. Thanks, Bill begin:vcard n:Deegan;William tel;fax:650-638-7890 tel;work:65

PerlTransHandler

2000-05-25 Thread Sergey Ivanyuk
Hi All. I'm having problems with the PerlTransHandler handler. I would like to only translate some requests, but keep Aliases working. However, I just can't get that done. If I use a simple 'return DECLINED;', all my cgi scripts and aliases directories return 'Not fo

mod_rewrite + PerlTransHandler

2003-01-19 Thread Torsten Foertsch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I am trying to get a PerlTransHandler called *after* some mod_rewrite processing. I thought if I configure the rewrite rules *before* the PerlTransHandler: RewriteEngine On RewriteRule ... [PT] PerlTransHandler Apache::TestTrans

PerlTransHandler headaches

2003-07-30 Thread Glenn E. Bailey III
Hello, While I am not new to Perl, I am completely new to mod_perl. I have a client I am working on moving a project that runs under mod_perl. He does alot manipulation with the PerlTransHandler stuff. Well, even on a default mod_perl install, with a default Apache install, I can not get the

unsetting PerlTransHandler

2003-08-14 Thread Torsten Foertsch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a PerlTransHandler Handler and want to unset the TransHandler inside the . How to do that? Thanks Torsten -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE/O2FrwicyCTir8T4RAsXlAKCr0SfbKsG

PerlTransHandler problem

2002-06-12 Thread Rasoul Hajikhani
Hello folks, I am trying to implement a simple PerlTransHandler to change: http://myserver/ to http://myserver.rhythm.com/ And here is my code: package MIS::GENERAL::FixURL; use Apache::Constants qw(DECLINED); use strict; sub handler { my $r = shift; my $uri = $r->

RE: PerlTransHandler

1999-10-19 Thread Eric Cholet
On Tuesday, October 19, 1999 4:13 AM, William Deegan [SMTP:[EMAIL PROTECTED]] wrote: > How can I change the environment variables that get passed to a perl > script running under Apache::Registry from a PerlTransHandler? > > I'm using the PerlTransHandler to do a sort of dy

Re: PerlTransHandler

1999-10-19 Thread William Deegan
Eric Cholet wrote: > > On Tuesday, October 19, 1999 4:13 AM, William Deegan [SMTP:[EMAIL PROTECTED]] >wrote: > > How can I change the environment variables that get passed to a perl > > script running under Apache::Registry from a PerlTransHandler? > > > > I

Re: PerlTransHandler

1999-10-20 Thread Mark Cogan
ing under Apache::Registry from a PerlTransHandler? >> > >> > I'm using the PerlTransHandler to do a sort of dynamic mod_rewrite >> > functionality. >> >> Since you've got mod_perl on both sides, I'd suggest you don't use env >> variables (whi

Re: PerlTransHandler

1999-10-21 Thread Dan Rench
On Tue, 19 Oct 1999, Mark Cogan wrote: > >> On Tuesday, October 19, 1999 4:13 AM, William Deegan > [SMTP:[EMAIL PROTECTED]] wrote: > >> > How can I change the environment variables that get passed to a perl > >> > script running under Apache::Registry from a

Re: PerlTransHandler

1999-10-21 Thread Randal L. Schwartz
> "Dan" == Dan Rench <[EMAIL PROTECTED]> writes: Dan> I'd suggest using $r->subprocess_env() instead. I was going to suggest that too. %ENV controls the environment of the currently running Perl process, but child processes come from the "subprocess env", which only the call above sets. -

PerlTransHandler question.

2000-05-23 Thread Antonio Pascual
I want handler a request only if the url is like http://localhost/idTrans=XXX In other case do the default behaviour. How could I do this? I suppose that I have to use PerlTransHandler, but I don't know how.   Thanks in advance.   Antonio.

Re: PerlTransHandler

2000-05-25 Thread Doug MacEachern
On Thu, 25 May 2000, Sergey Ivanyuk wrote: > Hi All. > > I'm having problems with the PerlTransHandler handler. I would like > to only translate some requests, but keep Aliases working. However, I > just can't get that done. If I use a simple 'return DECLIN

Re: PerlTransHandler

2000-05-25 Thread Sergey Ivanyuk
> > I'm having problems with the PerlTransHandler handler. I would like > > to only translate some requests, but keep Aliases working. However, I > > just can't get that done. If I use a simple 'return DECLINED;', all > > my cgi scripts and aliases

Re: PerlTransHandler

2000-05-25 Thread Doug MacEachern
On Thu, 25 May 2000, Sergey Ivanyuk wrote: > package handler; > > use Apache; > > sub handler { > return DECLINED; > } where does DECLINED come from? watch what happens if you add 'print handler()' and run it from the command line, and watch what happens when you add 'use strict;'. addin

Re: mod_rewrite + PerlTransHandler

2003-01-19 Thread Stas Bekman
Torsten Foertsch wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I am trying to get a PerlTransHandler called *after* some mod_rewrite processing. I thought if I configure the rewrite rules *before* the PerlTransHandler: RewriteEngine On RewriteRule ... [PT] PerlTransHandler

Re: mod_rewrite + PerlTransHandler

2003-01-20 Thread cowsgoesm00
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 20 Jan 2003 10:10:36 +1100, Stas Bekman wrote: >Not in mod_perl 1.0. Your best bet is probably to move the >mod_rewrite's >rules into your perl transhandler. or maybe just have mod_rewrite take precedence over mod_perl, by having LoadModule mo

mod_perl PerlTransHandler weirdness

2003-06-17 Thread Joel Bernstein
in Apache/Publicprofile/Redirector.pm It is loaded in the site Apache config like: ##begin apache config excerpt## [ inside a VirtualHost block, outside Location block ] PerlModule Apache::Publicprofile::Redirector SetHandler perl-script PerlTransHandler Apache::Publicprofile::Redirector PerlSen

Problem with PerlTransHandler

2003-06-27 Thread "Sergey V . Stashinskas"
Hi all, Excuse me for my poor English because I'm from Russia. I have the problem with url translation. There are 2 scripts to do it. 1st script work perfectly, but 2nd failed. Only difference between them is string "my $dbh = DBI->connect..."; I use Apche::DBI but without this module the same th

Re: PerlTransHandler headaches

2003-07-30 Thread Geoffrey Young
o something useful). since you didn't set $r->filename, apache is returning 404, since it can't serve the value of $r->filename. so, the general rule for PerlTransHandlers is to return DECLINED unless you set $r->filename. chapter 12 in the mod_perl Developer's Cookbook dea

RE: PerlTransHandler headaches

2003-07-30 Thread Glenn E. Bailey III
: check out the resources at http://perl.apache.org/ - there's : lots of good : information there :) Heh, only found one document there concerning the TransHandler stuff .. : so, the general rule for PerlTransHandlers is to return : DECLINED unless you : set $r->filename. What I am trying t

Re: PerlTransHandler headaches

2003-07-30 Thread Geoffrey Young
ill allow me to pull up my default content, correct? As of now it still gives me a 404 .. make sure the request works without the PerlTransHandler installed first. if it does, then adding that routine should be ok. don't forget, you can't just change handlers and expect them to work -

RE: PerlTransHandler headaches

2003-07-30 Thread Glenn E. Bailey III
: don't forget, you can't just change handlers and expect them : to work - This is probably what has been messing me up. Doing a quick stop and restart of Apache after any change I made seems to have fixed my problems, do! Thanks for your help ;-) . Glenn E. Bailey III . Network Solutions Devel

Re: unsetting PerlTransHandler

2003-08-14 Thread Torsten Foertsch
URI and in principle there can be a -specific transhandler. I'm wondering why it is impossible? For now I have implemented that particular case by PerlTransHandler MyPackage::transhandler PerlHandler MyPackage::handler package MyPackage; sub transhandler { ... return DECLINED if(g

Re: unsetting PerlTransHandler

2003-08-14 Thread Torsten Foertsch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 14 August 2003 13:48, Frank Maas wrote: > | > | PerlSetVar SkipTransHandler 1 > | I don't want to make it configurable. Torsten -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE/O54ywicyCTir8T4RAss0AJ4rNMkqyKC0Tlh8

Re: unsetting PerlTransHandler

2003-08-14 Thread Geoffrey Young
ter translation and that would also explain why the two solutions work... well, they can only be used during translation if the URI is unaltered. for instance, given the example we've seen already PerlTransHandler MyPackage::transhandler PerlHandler MyPackage::handler checking get_handlers()

Re: unsetting PerlTransHandler

2003-08-14 Thread Geoffrey Young
w Apache works. For now I have implemented that particular case by PerlTransHandler MyPackage::transhandler PerlHandler MyPackage::handler package MyPackage; sub transhandler { ... return DECLINED if(grep {$_ eq __PACKAGE__.'::handler'} @{$r->get_handlers('PerlHandler'

RE: unsetting PerlTransHandler

2003-08-14 Thread Frank Maas
being in (all) containers) is the innocent victim here. > For now I have implemented that particular case by Wouldn't this be simpler? |PerlTransHandler MyPackage::transhandler | | PerlSetVar SkipTransHandler 1 | | |package MyPackage; | |sub transhandler { |... |return DECLINED i

Re: unsetting PerlTransHandler

2003-08-14 Thread Torsten Foertsch
can only be used during translation if the URI is unaltered. > for instance, given the example we've seen already > > PerlTransHandler MyPackage::transhandler > > PerlHandler MyPackage::handler > > > checking get_handlers() in transhandler() only works because the i

Re: unsetting PerlTransHandler

2003-08-14 Thread Torsten Foertsch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 14 August 2003 14:49, Geoffrey Young wrote: > trans handlers are used to map the URI to a filename, the result of which > lets Apache know to which the URI belongs to. it can also > affect which the URI belongs to if that is paired > wi

Re: unsetting PerlTransHandler

2003-08-14 Thread Frank Maas
On Thu, Aug 14, 2003 at 11:07:13AM -0400, Geoffrey Young wrote: > > "There is actually a / sequence performed just > before the name translation phase (where Aliases and DocumentRoots are > used to map URLs to filenames). The results of this sequence are completely > thrown away after the tra

Re: unsetting PerlTransHandler

2003-08-14 Thread Geoffrey Young
; part. in essence, this means that the results of the config merging are discarded prior to translation, after which merging is done again. regardless, officially apache translation (which includes the PerlTransHandler) cannot be specific - directives must appear outside of , , a

RE: unsetting PerlTransHandler

2003-08-14 Thread Frank Maas
> and want to unset the TransHandler inside the . > How to do that? AFAIK: not. The TransHandler is the first to be called and cannot appear inside a container (ref. ModPerl cookbook). The only thing I can think of, and in fact implemented this, to make the TransHandler URI-aware and return immed

Re: PerlTransHandler problem

2002-06-12 Thread Lyle Brooks
Quoting Rasoul Hajikhani ([EMAIL PROTECTED]): > Hello folks, > I am trying to implement a simple PerlTransHandler to change: > > http://myserver/ > > to > > http://myserver.rhythm.com/ > > And here is my code: > > package MIS::GENERAL::FixURL; &g

Re: PerlTransHandler problem

2002-06-12 Thread Randal L. Schwartz
>>>>> "Rasoul" == Rasoul Hajikhani <[EMAIL PROTECTED]> writes: Rasoul> I am trying to implement a simple PerlTransHandler to change: Rasoul> http://myserver/ Rasoul> to Rasoul> http://myserver.rhythm.com/ Both of those are "/" as far as a

Re: PerlTransHandler problem

2002-06-12 Thread Rasoul Hajikhani
t; "Rasoul" == Rasoul Hajikhani <[EMAIL PROTECTED]> writes: > > Rasoul> I am trying to implement a simple PerlTransHandler to change: > > Rasoul> http://myserver/ > > Rasoul> to > > Rasoul> http://myserver.rhythm.com/ > > Both of

Re: PerlTransHandler problem

2002-06-12 Thread Rasoul Hajikhani
A funny thing is happening with my PerlTransHandler... It is not being called at all... :( I have added warn messages but they never appear in the error log. I am at a loss and hoping that some one may have an answer... -r Lyle Brooks wrote: > > Quoting Rasoul Hajikhani ([EMAIL PRO

Re: PerlTransHandler problem

2002-06-12 Thread Lyle Brooks
asoul Hajikhani ([EMAIL PROTECTED]): > A funny thing is happening with my PerlTransHandler... > It is not being called at all... :( > I have added warn messages but they never appear in the error log. > I am at a loss and hoping that some one may have an answer... > -r &g

Re: PerlTransHandler problem

2002-06-12 Thread Lyle Brooks
gt; > > > >>>>> "Rasoul" == Rasoul Hajikhani <[EMAIL PROTECTED]> writes: > > > > Rasoul> I am trying to implement a simple PerlTransHandler to change: > > > > Rasoul> http://myserver/ > > > > Rasoul> to &g

Re: PerlTransHandler problem

2002-06-12 Thread Lyle Brooks
plications that depend on reading cookies down the > > request chain could actually do so... > > -r > > > > "Randal L. Schwartz" wrote: > > > > > > >>>>> "Rasoul" == Rasoul Hajikhani <[EMAIL PROTECTED]> writes:

Re: PerlTransHandler problem

2002-06-12 Thread simran
What it sounds like you want is: PerlTransHandler Whatever::CheckName and in CheckName.pm sub handler { my $r = instance Apache::Request(shift); if ($r->hostname !~ /rhythm\.com/) { $r->header_out("Location" => "http://myserver.rhythm.com".$r->uri);

Re: PerlTransHandler problem

2002-06-12 Thread Nick Tonkin
conundrum vis a vis PerlTransHandler, but it's a more elegant solution anyway, imho. - nick Nick Tonkin {|8^)> On Wed, 12 Jun 2002, Rasoul Hajikhani wrote: > A funny thing is happening with my PerlTransHandler... > It is not being called at all... :( >

Re: PerlTransHandler problem

2002-06-13 Thread darren chamberlain
* Rasoul Hajikhani <[EMAIL PROTECTED]> [2002-06-12 19:12]: > Hello folks, > I am trying to implement a simple PerlTransHandler to change: > > http://myserver/ > > to > > http://myserver.rhythm.com/ > > And here is my code: [-- snip --] Have you see

RE: PerlTransHandler question.

2000-05-23 Thread Geoffrey Young
: [EMAIL PROTECTED]Subject: PerlTransHandler question. I want handler a request only if the url is like http://localhost/idTrans=XXX In other case do the default behaviour. How could I do this? I suppose that I have to use PerlTransHandler, but I don't know how.   Than

Re: PerlTransHandler question.

2000-05-23 Thread Randal L. Schwartz
>>>>> "Antonio" == Antonio Pascual <[EMAIL PROTECTED]> writes: Antonio> I want handler a request only if the url is like http://localhost/idTrans=XXX Antonio> In other case do the default behaviour. Antonio> How could I do this? Antonio> I suppose that

PerlTransHandler and CGI.pm

2000-06-07 Thread Eric Jain
n the url, I even get a 404 error. Slashes too only work if they are not encoded. There must be something wrong in my PerlTransHandler, approximatly here: my $uri = $r->uri(); if ( my($u1,$u2) = $uri =~ / ^ ([^?]+?) ; ([^?]*) $ /x ) { $r->

%ENV via PerlTransHandler

2001-03-21 Thread Paul Evad
1; }); gives two different sets of results when used via a transhandler or via PerlTransHandler Apache::Kudos::Test # yields near to nothing in subprocess_env SetHandler perl-script PerlHandler Apache::Tutorial::First The above does give the full ENV variables

Session managing using PerlTransHandler

2002-11-22 Thread dima
How I Can redirect to page http://foo.bar/ses1/index.html from PerlTransHandler Module?

Re: mod_perl PerlTransHandler weirdness

2003-06-17 Thread Joel Bernstein
Alternatively, can anybody suggest a different way to offer this functionality? I don't think mod_rewrite applies, since the tests are too complicated, but would stand corrected if somebody knows different... I posted this to london.pm earlier and had no joy. /joel, getting a bit desperate.

Re: mod_perl PerlTransHandler weirdness

2003-06-17 Thread Aaron Trevena
On Tue, 2003-06-17 at 13:56, Joel Bernstein wrote: > Alternatively, can anybody suggest a different way to offer this > functionality? I don't think mod_rewrite applies, since the tests are > too complicated, but would stand corrected if somebody knows > different... Have you tried moving the inde

Re: mod_perl PerlTransHandler weirdness

2003-06-17 Thread Geoffrey Young
ility for http://foo.bar.com/david to redirect to http://foo.bar.com/?page=publicprofile.php&name=david . the secret to the PerlTransHandler is this: it is there to make the URI into a file. so, if you deconstruct the URI to a point where you know which real file you want to serve (at a filesys

Re: mod_perl PerlTransHandler weirdness

2003-06-20 Thread Aaron Ross
just fyi, mod_rewrite should be capable of handling those tests. See the file tests under http://httpd.apache.org/docs-2.1/en/mod/mod_rewrite.html#rewritecond HTH, Aaron On Tue, 2003-06-17 at 08:56, Joel Bernstein wrote: > Alternatively, can anybody suggest a different way to offer this > functi

Re: Problem with PerlTransHandler

2003-06-27 Thread Thomas Klausner
Hi! On Fri, Jun 27, 2003 at 02:47:45PM +0400, "Sergey V. Stashinskas" wrote: > sub handler { > my $r = shift; > > my $dbh = DBI->connect('dbi:mysql:db', 'user', 'pswd'); > $dbh->disconnect; maybe the DBI->connect isn't working and thus your script dies / throws some error ? I'd t

RE: Problem with PerlTransHandler

2003-06-27 Thread csebe
ey V. Stashinskas [mailto:[EMAIL PROTECTED] > Sent: Friday, June 27, 2003 1:48 PM > To: [EMAIL PROTECTED] > Subject: Problem with PerlTransHandler > > > Hi all, > > Excuse me for my poor English because I'm from Russia. > > I have the problem with url translation

more then one PerlTransHandler

1999-12-12 Thread Evgenii Bazarov
Hi! I tried to set more then one PerlTransHandler but if I specify both on the same line, Apache says "syntax error", otherwise it see only the last one. Apache 1.3.6 on Linux with mod_perl 1.19 According to "Apache Modules" book it should be possible... Any advice will b

setting query in PerlTransHandler

2000-01-09 Thread Ajay Shah
This maybe be repeated becuase I sent the first message via Geo Crawlere and don't know how long they are going to take to review the message. Sorry if it comes in twice. I am writing a simple PerlTransHandler that is going to change the request into another with query string. The followi

Getting ENV in PerlTransHandler

2000-05-08 Thread sadhanandham balaraman
Hi, How do I get ENV variables values in my PerlTransHandler. I want to know the HTTP_USER_AGENT in my PerlTransHandler. Please suggest me. Get Your Private, Free E-mail from MSN Hotmail

RE: PerlTransHandler and CGI.pm

2000-06-07 Thread Eric Jain
4 error. Slashes too only work if they are > not encoded. > > There must be something wrong in my PerlTransHandler, approximatly > here: > > my $uri = $r->uri(); > > if ( my($u1,$u2) = $uri =~ / ^ ([^?]+?) ; ([^?]*) $ /x ) > { > $r->uri($u1); > $r->args($u2); > } > > But what? > > -- > Eric Jain >

RE: %ENV via PerlTransHandler

2001-03-21 Thread Rob Bloodgood
> question: how does one access the environment variables when using > mod_perl as a transhandler? [ SNIP transhandler vs content handler diffs ] > Is there a better way to get at ENV stuff than subprocess_env? The setup of %ENV is a convenience for CGI programmers. In fact, other than loading/c

RE: %ENV via PerlTransHandler

2001-03-21 Thread Geoffrey Young
-Original Message- From: Paul Evad To: [EMAIL PROTECTED] Sent: 3/21/01 1:36 PM Subject: %ENV via PerlTransHandler > >question: how does one access the environment variables when using >mod_perl as a transhandler? > what kind of stuff are you expecting HTTP_REFERER and

Re: %ENV via PerlTransHandler

2001-06-13 Thread Doug MacEachern
$r->warn("$key => $value\n"); > 1; >}); > > gives two different sets of results when used via a transhandler or via > > PerlTransHandler Apache::Kudos::Test # yields near to nothing in subprocess_env %

Re: Session managing using PerlTransHandler

2002-11-22 Thread Enrico Sorcinelli
On Fri, 22 Nov 2002 19:09:25 +0200 [EMAIL PROTECTED] wrote: > How I Can redirect to page http://foo.bar/ses1/index.html from PerlTransHandler >Module? Hi, the description of your problem is very... short. The chapter 5 of 'eagle' book explain how to put and strip session I

Re[2]: Problem with PerlTransHandler

2003-06-27 Thread "Sergey V . Stashinskas"
TED] Date: Fri, 27 Jun 2003 14:56:22 +0200 Subject: Re: Problem with PerlTransHandler > > Hi! > > On Fri, Jun 27, 2003 at 02:47:45PM +0400, "Sergey V. Stashinskas" wrote: > > > sub handler { > > my $r = shift; > > > > my $dbh =

Re[2]: Problem with PerlTransHandler

2003-06-27 Thread "Sergey V . Stashinskas"
If these lines are commented out then script is working ok. -Original Message- From: <[EMAIL PROTECTED]> To: "Sergey V. Stashinskas " <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> Date: Fri, 27 Jun 2003 16:39:12 +0300 Subject: RE: Problem with PerlTransHandler &g

Re[4]: Problem with PerlTransHandler

2003-06-27 Thread "Sergey V . Stashinskas"
$r->uri =~ /^\/session\/([a-zA-Z0-9]{32})(.*)/; $r->subprocess_env(SESSION => $1); $r->uri($2); return DECLINED; } 1; -Original Message- From: "Raf" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Date: Fri, 27 Jun 2003 15:09:13 - (GMT) Subject:

Re[6]: Problem with PerlTransHandler

2003-06-27 Thread "Sergey V . Stashinskas"
." Why??? __END__ -Original Message- From: "Raf" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Date: Fri, 27 Jun 2003 15:35:16 - (GMT) Subject: Re: Re[4]: Problem with PerlTransHandler > > Sergey V. Stashinskas said: > > Problem is not in connecti

Re: more then one PerlTransHandler

1999-12-14 Thread Doug MacEachern
On 12 Dec 1999, Evgenii Bazarov wrote: > Hi! > > I tried to set more then one PerlTransHandler but > if I specify both on the same line, Apache says > "syntax error", otherwise it see only the last one. make sure you have built the server with at least PERL_STACKED_H

again - more then one PerlTransHandler

1999-12-14 Thread Evgenii Bazarov
line, e.g. in httpd.conf PerlTransHandler SimpleTranslation::handler FancyTranslation::handler In this case Apache spits out error: Syntax error on line 29 of /etc/httpd/conf/perl.conf PerlTransHandler takes one argument, the Perl Translation handler routine name. and exits. Secondly I tr

Re: setting query in PerlTransHandler

2000-01-09 Thread Randal L. Schwartz
> "Ajay" == Ajay Shah <[EMAIL PROTECTED]> writes: Ajay> /articles/10/index.html => /articles/index.html?id=10 Ajay> This is what I tried. Ajay> sub handler { Ajay> my $r = shift; Ajay> my $uri = $r->uri; Ajay> my ($id) = ($uri =~ m|^/articles/(.*?)/|); Ajay> my $newuri =

Re: setting query in PerlTransHandler

2000-01-09 Thread Ajay Shah
> >I may be wrong, but I bet you have to do this instead: > But you aren't :) > > $r->uri("/articles/index.html"); > $r->args("id=$id"); > >By the time the apache-request object has been created, args are >handled in a separate slot. > That worked. Maybe this should be documented somewhere

PerlTransHandler and sort of mapping

2000-04-07 Thread raptor
hi, I was wondering how to map PerlTransHandler only for certain type of files. ( I'm doing URI rewriting not URI->filename translation ?!!) Something like : PerlTransHandler Apache::MyHandler Yes I know this is wrong...can this be done in some other way ? Thanx = iVA

Re: Getting ENV in PerlTransHandler

2000-05-12 Thread Doug MacEachern
On Mon, 8 May 2000, sadhanandham balaraman wrote: > Hi, > > How do I get ENV variables values in my PerlTransHandler. I want to >know > the HTTP_USER_AGENT in my PerlTransHandler. try staying away from %ENV unless you want cgi compat, which you can't have f

Re: Re[2]: Problem with PerlTransHandler

2003-06-27 Thread Raf
; 2003 16:39:12 +0300 > Subject: RE: Problem with PerlTransHandler > >> >> Have you tried to comment out the 2 DBI lines like this: >> >> #my $dbh = DBI->connect('dbi:mysql:db', 'user', 'pswd'); >> #$dbh->disconnect; Can't find yo

Re: Re[4]: Problem with PerlTransHandler

2003-06-27 Thread Raf
ss_env(SESSION => $1); > $r->uri($2); > > return DECLINED; > } > > 1; > > -Original Message- > From: "Raf" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Date: Fri, 27 Jun 2003 15:09:13 - (GMT) > Subject: Re:

RE: again - more then one PerlTransHandler

1999-12-15 Thread Geoffrey Young
H --Geoff > -Original Message- > From: Evgenii Bazarov [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 13, 1999 8:42 AM > To: [EMAIL PROTECTED] > Subject: again - more then one PerlTransHandler > > > Hi everybody, > > Sorry for the poor wording of my question.

Re: again - more then one PerlTransHandler

1999-12-15 Thread darren chamberlain
translation > handler. I tried two approaches to specifying handlers > in the Apache config file (both recommended in the > "Eagle" book.) First, have both handlers on the same line, > e.g. in httpd.conf > > PerlTransHandler SimpleTranslation::handler FancyTranslat

Re: again - more then one PerlTransHandler

1999-12-15 Thread Andrei A. Voropaev
ll and use more then one translation > handler. I tried two approaches to specifying handlers > in the Apache config file (both recommended in the > "Eagle" book.) First, have both handlers on the same line, > e.g. in httpd.conf > > PerlTransHandler SimpleTranslation

Re: again - more then one PerlTransHandler

1999-12-15 Thread Jay J
- Original Message - From: "Andrei A. Voropaev" <[EMAIL PROTECTED]> To: "Evgenii Bazarov" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, December 15, 1999 10:18 AM Subject: Re: again - more then one PerlTransHandler > It works p

Re: [Re: more then one PerlTransHandler]

1999-12-16 Thread Evgenii Bazarov
I use Apache config file with PerlTransHandler entry. Yes I set DECLINED, but actually it doesn't matter in this case, because the LAST handler out of all installed PerlTransHandlers in the file actually gets invoked by Apache in my test. If it be the FIRST, I would suspect that I mess

RE: PerlTransHandler and sort of mapping

2000-04-07 Thread Eric Cholet
> hi, > > I was wondering how to map PerlTransHandler only for certain type of files. > ( I'm doing URI rewriting not URI->filename translation ?!!) > > Something like : > > >PerlTransHandler Apache::MyHandler > > > > Yes I know thi

Re: Replacing mod_prewrite with a PerlTransHandler

2000-11-16 Thread Tom Mornini
On 15 Nov 2000, David Hodgkinson wrote: > Geoffrey Young <[EMAIL PROTECTED]> writes: > > > Perhaps that would make for a good talk ;) > > mod_rewrite recovery? > > Ok seriously then, we're proposing replacing a lite apache and > mod_rewrite with a slightly heavier, but presumably highly shared

hostname sanitation in PerlTransHandler or anywhere else

1999-10-29 Thread Dan Rench
We use a TransHandler to (among other things) manage name-based virtual hosts (simply put, given the incoming Host: header plus URI, map to a file). We (of course) sanitize the incoming URI and Host. It works fine. I "save" the sanitized hostname like so: $r->header_in('Host',$host); $r

Re: [Re: again - more then one PerlTransHandler]

1999-12-16 Thread Evgenii Bazarov
Waa!!! So far nobody who answered even doubted that it should be possible to have more then one PerlTransHandler. The "Eagle" book also says that it should be possible. People suggested that either my mod_perl built with wrong flags or I messed up return codes OK/DECLINED (which I did

Re: [Re: again - more then one PerlTransHandler]

1999-12-16 Thread Eric Cholet
On Thu, 16 Dec 1999, you wrote: > Waa!!! So far nobody who answered even doubted that > it should be possible to have more then one > PerlTransHandler. The "Eagle" book also says > that it should be possible. People suggested that > either my mod_perl built with wro

Re: hostname sanitation in PerlTransHandler or anywhere else

1999-10-29 Thread Francesc Guasch
Dan Rench wrote: > > PS: I'd still like to hear from anyone who is running mod_perl on > Solaris 2.5.1 with Perl 5.005_03 -- I don't want to stick with 5.004 forever. If only you could upgrade to solaris 2.6. I have it running: SunOS 5.6 This is perl, version 5.005_03 built for sun4-solaris apa

Re: hostname sanitation in PerlTransHandler or anywhere else

1999-10-29 Thread Dan Rench
On Fri, 29 Oct 1999, I wrote: > I can only think of a couple options: hack http_core.c to do what I want, > or write a custom LogHandler that uses the sanitized host. We've decided on another option: if you're sending a Host: header that needs "sanitation," then either 1) you're trying to run s

Re: [Re: [Re: again - more then one PerlTransHandler]]

1999-12-19 Thread Evgenii Bazarov
Thanks for the answers! I was using RedHat rpm and it was giving the problem as it was suggested. After I built mod_perl with apache (mod_perl 1.21, apache 1.3.9, the problem was resolved. At least that's what I thought ! In fact now Apache lets me use more then one PerlTransHandler, b

Re: [Re: [Re: again - more then one PerlTransHandler]]

1999-12-21 Thread Doug MacEachern
> At least that's what I thought ! > > In fact now Apache lets me use more then one > PerlTransHandler, but it doesn't care > of what is the return codes are!!! > > Even I return OK, it still calls > next registered handlers. Really weird! mod_perl does car

Re: [Re: [Re: again - more then one PerlTransHandler]]

1999-12-22 Thread Andrei A. Voropaev
nslation the "native" handler will be called only if last Perl handler returned DECLINED. Andrei On Tue, Dec 21, 1999 at 01:45:40PM -0800, Doug MacEachern wrote: > > At least that's what I thought ! > > > > In fact now Apache lets me use more then one > &g

Re: [Re: [Re: again - more then one PerlTransHandler]]

1999-12-22 Thread Peter Haworth
Doug MacEachern wrote: > > At least that's what I thought ! > > > > In fact now Apache lets me use more then one > > PerlTransHandler, but it doesn't care > > of what is the return codes are!!! > > > > Even I return OK, it still calls >

or PerlTransHandler directive for multiple /user/subdir/action

2000-01-13 Thread Clifford Lang
Or should I write a PerlTransHandler for the whole site looking for a match, then setting the perlhandler from there? Something like $r->url =~ m:^/(.+)/admin/config$/ || return DECLINED; $r->handler("perl-handler"); $r->push_handlers(PerlHandler =

Re: or PerlTransHandler directive for multiple /user/subdir/action

2000-01-13 Thread Gerald Richter
I write a with wildcards as then > set my handler? > Take a look at Gerald > Or should I write a PerlTransHandler for the whole site looking for a match, > then setting the perlhandler from there? Something like > > $r->url =~ m:^/(.+)/admin/config$/ || return DECLINED

Re: the perl Script called from perlTranshandler seems to besynchronized

2003-01-21 Thread Randy Kobes
On Wed, 22 Jan 2003, Db-Doc SP wrote: > > > Hello All, > > > > I am having a peculiar problem it seems that only one request > > can be serviced at a time while using mod_perl > > (perlTransHandler). > > > > we are using > > > > Apache

Re: or PerlTransHandler directive for multiple /user/subd ir/action

2000-01-13 Thread Andre Landwehr
On Thu, Jan 13, 2000 at 06:08:33AM -0500, Clifford Lang wrote: > > Which is best or right one to use? > > I have thousands of user directories, with a sub of admin for them to > configure their site. > > >From the admin location I want to call the "config" (module e.g. > www.here.com/user/admi

Re: the perl Script called from perlTranshandler seems to be synchronized

2003-01-21 Thread Db-Doc SP
> Hello All, > > I am having a peculiar problem it seems that only one request can be serviced at a >time while using mod_perl (perlTransHandler). > > we are using > > Apache 1.3.26 > mod_perl > > It seems as though when I use mod_perl apache can handle onl

Replacing mod_prewrite with a PerlTransHandler Was: Re: [ANNOUNCE] ApacheCon USA 2001: Call For Papers

2000-11-15 Thread David Hodgkinson
Geoffrey Young <[EMAIL PROTECTED]> writes: > Perhaps that would make for a good talk ;) mod_rewrite recovery? Ok seriously then, we're proposing replacing a lite apache and mod_rewrite with a slightly heavier, but presumably highly shared mod_perled apache at the front end. Measurements anyone