perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Winfried Neessen <nees...@cleverbridge.com>
Subject Re: how to detect if current connection is https?
Date Thu, 12 Jun 2014 11:15:36 GMT
Hi,

mod_ssl in Apache 2.x has the option to set specific environment variables for
SSL related stuff. This requires "SSLOptions" directive to be set to at least
"+StdEnvVars". If that is set, you can access it easily by checking for $ENV{'HTTPS'}.

See https://httpd.apache.org/docs/current/mod/mod_ssl.html for more information.


Winni

----- Original Message -----
> From: "Louis-David Mitterrand" <vindex+lists-modperl@apartia.org>
> To: modperl@perl.apache.org
> Sent: Thursday, June 12, 2014 11:41:15 AM
> Subject: how to detect if current connection is https?
> 
> Hi,
> 
> What is the canonical way of testing if the current request is
> https (ssl)?
> 
> I found Apache2::ModSSL which adds $c->is_https but it seems old and not
> packaged for debian.
> 
> Thanks,
> 

Mime
View raw message