telize

High performance JSON IP and GeoIP REST API (IP Geolocation)
Log | Files | Refs | README | LICENSE

commit 889f7b28fc3f3efbddd6d26e470ffbb52d8bcc8d
parent 3383e016d186a30b1f59d9ce813ab58d422901ed
Author: Yann VERRY <yann@verry.org>
Date:   Tue,  1 Apr 2014 08:33:23 +0200

remove rewrite adjust location

Diffstat:
Mtelize | 4+---
Mtelize_x-forwarded-for | 4+---
2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/telize b/telize @@ -30,9 +30,7 @@ server { echo_exec /jsonify ip=$remote_addr&callback=$arg_callback; } - rewrite ^/geoip$ /geoip/ last; - - location ~ /geoip/(?<ip>.*) { + location ~ /geoip/?(?<ip>.*) { if ($ip = "") { set $ip $remote_addr; diff --git a/telize_x-forwarded-for b/telize_x-forwarded-for @@ -35,9 +35,7 @@ server { echo_exec /jsonify ip=$remote_addr&callback=$arg_callback; } - rewrite ^/geoip$ /geoip/ last; - - location ~ /geoip/(?<ip>.*) { + location ~ /geoip/?(?<ip>.*) { if ($ip = "") { set $ip $remote_addr;