Re: how to detect if current connection is https?

Winfried Neessen <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
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" <[email protected]>
> To: [email protected]
> 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,
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.