Re: how to detect if current connection is https?

Torsten Förtsch <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
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.

Torsten
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.