-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
> 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
;
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
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
-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
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
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'
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
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()
-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
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
: 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
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 -
: 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
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
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
."
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
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:
$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:
; 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
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
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
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 =
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
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
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
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
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
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.
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
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
> 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
-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
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
-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
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
How I Can redirect to page http://foo.bar/ses1/index.html from PerlTransHandler
Module?
* 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
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... :(
>
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);
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:
gt; >
> > >>>>> "Rasoul" == Rasoul Hajikhani <[EMAIL PROTECTED]> writes:
> >
> > Rasoul> I am trying to implement a simple PerlTransHandler to change:
> >
> > Rasoul> http://myserver/
> >
> > Rasoul> to
&g
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
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
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
>>>>> "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
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
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->
$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
%
-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
> 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
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
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
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
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
>
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->
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
> > 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
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
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
>>>>> "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
: [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
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.
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
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
> 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
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
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
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
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 =
>
>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
> "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 =
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
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
>
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
> 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
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
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
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
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
- 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
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
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
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.
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
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
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
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
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
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
> "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.
-
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
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
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
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
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
96 matches
Mail list logo