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