telize

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

commit 72d5b423c7fe2d58e31899a4a793f4ddd0e345d5
parent 5315deb16479ced2ff3b4f6c74471b780ebcc249
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Fri,  4 Oct 2013 20:23:54 +0200

Enforcing stritctly defined URL endpoints

Diffstat:
Mtelize | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/telize b/telize @@ -4,7 +4,7 @@ # http://www.telize.com # # # # Created: 2013/08/15 # -# Last Updated: 2013/10/03 # +# Last Updated: 2013/10/04 # # # # Telize is released under the BSD 3-Clause license. # # See LICENSE file for details. # @@ -17,7 +17,7 @@ server { keepalive_timeout 0; gzip off; - location /ip + location ~ /ip$ { charset off; default_type text/plain; @@ -25,7 +25,7 @@ server { echo $remote_addr; } - location /jsonip + location ~ /jsonip$ { echo_exec /jsonify ip=$remote_addr&callback=$arg_callback; }