httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reindl Harald <h.rei...@thelounge.net>
Subject Re: mod_rewrite %{REMOTE_ADDR} / mod_remoteip
Date Fri, 31 Jan 2014 23:26:52 GMT


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>


Mime
View raw message