perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Veyron <vv.li...@wanadoo.fr>
Subject Re: get the incoming TCP protocol type
Date Sun, 25 Nov 2012 23:52:23 GMT
Le samedi 24 novembre 2012 à 16:58 +0100, André Warnier a écrit :

> Is there somewhere a "is_secure()" or something which provides that ?
> Or can I rely on the presence/absence of some request header ?
> 


Apache's mod_rewrite has the HTTPS RewriteCond directive, which I use to
enforce https access on a site like so:

 RewriteCond %{HTTPS} off

 RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

May be you can use this to mark the request somehow?

-- 
Vincent Veyron
http://marica.fr/
Logiciel de gestion des assurances sinistres et des dossiers contentieux pour le service juridique


Mime
View raw message