Hi

Just a few words, as I found out this a time ago (I thought I posted a
response to my own question but I may have forgotten :-)

The ap_http_method() seemed to work for me. I'm using mod_ssl, which patches
the original Apache code. So this macro is also patched to a more
sophisticated version than in "plain" Apache.
I haven't tested it with "commercialy supported" Apache version like
Stronghold (your version is (still) I think Apache-SSL based) or Raven, but
you say that it does NOT work with "atleast one vendor", which one.

Your solution could be considered as standard if it works for all Apache
based SSL solutions, which has to be tested.

BTW, I don't understand why Dirk-Willem van Gulik said that in a proxy
environment I'm not safe...

Regards

Marc

----- Original Message -----
From: Vinod Mehra <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Cc: Mod-ssl Users Mailing list <[EMAIL PROTECTED]>
Sent: Tuesday, June 27, 2000 2:47 AM
Subject: Re: [apache-modules] How to know if we're in SSL mode


> My apologies for picking up this old thread once again.
>
> Is the following a standard way to find out if you are in SSL mode or not:
>
> ap_table_get(r->subprocess_env, "HTTPS")  => if ="on" then SSL mode.
>
> Is this a standard thing or vendor specific? I tried it on Raven and
> Stronghold
> it works. I was wondering about other vendors.
>
> BTW ap_http_method() is defined as a macro in the httpd.conf file. So I
> am wondering if that would really work. It crashes with atleast one
vendor.
>
> Maybe this question was already answered and I didn't catch it, so my
> apologies again...
>
> Thanks,
> --Vinod.
>
> At 08:25 AM 6/20/00 +0200, Dirk-Willem van Gulik wrote:
>
> >http_get_method() should return the right protocol string. Though that is
> >just a first cut; in a proxy environment you are not save.
> >
> >Dw
> >
> >On Thu, 15 Jun 2000, Marc van Leeuwen wrote:
> >
> > > I'm actually writing an Apache Module on an Apache configuration using
> > > mod-ssl patch.
> > >
> > > I would like to know in my module's handler whether the current
request
> > is a
> > > SSL one or not, in a more elegant and robust manner than looking at
the
> > port
> > > number used.
> > >
> > > Any idea ?
> > >
> > > Marc
> > >
> > > --
> > > ----------------------------------------------------------------
> > > Apache Modules Mailing List            636 currently subscribed
> > > ----------------------------------------------------------------
> > >
> > > If you wish to be removed from this list, send the word
> > > 'unsubscribe' to: [EMAIL PROTECTED]
> > >
> > >
> >______________________________________________________________________
> >Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
> >User Support Mailing List                      [EMAIL PROTECTED]
> >Automated List Manager                            [EMAIL PROTECTED]
>
> ______________________________________________________________________
> Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
> User Support Mailing List                      [EMAIL PROTECTED]
> Automated List Manager                            [EMAIL PROTECTED]
>

______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to