Re: how to detect if current connection is https?

2014-06-12 Thread Louis-David Mitterrand
On Thu, Jun 12, 2014 at 11:50:45AM +0200, Torsten Förtsch wrote: > 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

Re: how to detect if current connection is https?

2014-06-12 Thread Winfried Neessen
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/mo

Re: how to detect if current connection is https?

2014-06-12 Thread Torsten Förtsch
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 mi

how to detect if current connection is https?

2014-06-12 Thread Louis-David Mitterrand
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,