perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Förtsch <>
Subject Re: how to detect if current connection is https?
Date Thu, 12 Jun 2014 09:50:45 GMT
On 12/06/14 11:41, Louis-David Mitterrand wrote:
> I found Apache2::ModSSL which adds $c->is_https but it seems old and not
> packaged for debian.

I am the author of said module. I haven't tried it with the httpd24
branch. But for httpd 2.2. it is expected to work.

However, the only reason you might need it is to get access to SSL
related stuff prior to the response phase. If you only need that
information in the response phase, you can have mod_ssl set a bunch of
environment variables accessible via $r->subprocess_env.

Also, SSL in HTTPD is bound to a certain endpoint on the server. So, if
you know that your server listens on IP:PORT for SSL connections, you
can check that using the modperl API.


View raw message