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-modp...@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, >