JT Smith <[EMAIL PROTECTED]> wrote on 08/12/2005 14:56:59:
> Similar question: Let's say you have a mod_proxy apache set up in
> front of a mod_perl
> apache. Is there any way to tell on mod_perl that the connection
> came through https on
> mod_proxy?
>
>
> On Thu, 8 Dec 2005 12:27:41 +0100
> Torsten Foertsch <[EMAIL PROTECTED]> wrote:
> > On Thursday 08 December 2005 11:42, [EMAIL PROTECTED]
wrote:
> >> Is there a way that I can find out how a user has requested a page?
> >> Everything I have read suggests that I can do it by
> >> $r->parsed_uri->scheme, but this always seems to yeild undef.
> >
> > This is for mp2:
> >
> > In the response phase you can use $r->subprocess_env('HTTPS'). For
earlier
> > phases you need Apache2::ModSSL or Apache::SSLLookup. Then you can
check
> > $r->connection->is_https or $r->is_https.
> >
> > With mp1 I seem to remember you could check
> $r->subprocess_env('HTTPS') also
> > in the fixup phase depending on the right order of
LoadModule/AddModule
> > statements (mod_ssl before mod_perl or after).
> >
> > Torsten
I'm working on mod_perl 1, apache 1. I think I cracked it with:
Apache::URI->parse($r)->scheme;
>
> JT ~ Plain Black
> ph: 703-286-2525 ext. 810
> fax: 312-264-5382
> http://www.plainblack.com
>
> I reject your reality, and substitute my own. ~ Adam Savage
--
Tom Kirkpatrick
Web Developer - Virus Bulletin