Re: [apache-ssl] SSL Detection Within Server
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [apache-ssl] SSL Detection Within Server



Be careful when using Suexec, however. The cleanenv() function kills off all
the SSL-specific variables.

    -Jeff
--
Jeffrey Mahoney
System Programmer
Information Systems and Computing
Rochester Institute of Technology
Rochester NY
Ph: 716-475-2258
-----Original Message-----
From: Adam Laurie <adam@algroup.co.uk>
To: apache-ssl@lists.aldigital.co.uk <apache-ssl@lists.aldigital.co.uk>
Date: Monday, August 17, 1998 3:00 PM
Subject: Re: [apache-ssl] SSL Detection Within Server


>Dave Finnegan wrote:
>>
>> I have a module built into an Apache-SSL server which needs
>> to know if a request has arrived via an SSL port or a
>> cleartext port.
>>
>> Is there an easy way to determine this?
>
>Yep - check for the presence of an environment variable called 'HTTPS' -
>it will be set if SSL is being used - you can also look at 'SERVER_PORT'
>which should equal your secure server's port. For more like this, check:
>
>  http://www.ford-mason.co.uk/resources/apache-refcard/
>
>cheers,
>Adam
>--
>Adam Laurie                   Tel: +44 (181) 742 0755
>A.L. Digital Ltd.             Fax: +44 (181) 742 5995
>Voysey House
>Barley Mow Passage            http://www.aldigital.co.uk
>London W4 4GB                 mailto:adam@algroup.co.uk
>UNITED KINGDOM                PGP key on keyservers
>