You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Reindl Harald <h....@thelounge.net> on 2014/02/01 00:26:52 UTC
Re: mod_rewrite %{REMOTE_ADDR} / mod_remoteip
Am 31.01.2014 12:17, schrieb Reindl Harald:
> Am 30.01.2014 18:47, schrieb Eric Covener:
>> I think a link here is good for posterity
>
> thanks again for feedback
>
> mod_rewrite doesn't expose client_addr
> https://issues.apache.org/bugzilla/show_bug.cgi?id=56094
https://issues.apache.org/bugzilla/show_bug.cgi?id=56094#c5
and confirmed - great - thank you!
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{CONN_REMOTE_ADDR} !^127\.0\.0\.1
RewriteCond %{HTTPS} off
RewriteRule (.*) https://www.example.com%{REQUEST_URI}
</IfModule>