From 92babb43a2a0041a71b54db35cbc9d2fba908a63 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 27 Nov 2014 02:41:21 +0100 Subject: Rewrote the linkshorter. --- linkshorter/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 linkshorter/nginx.conf (limited to 'linkshorter/nginx.conf') diff --git a/linkshorter/nginx.conf b/linkshorter/nginx.conf new file mode 100644 index 0000000..a4af9cb --- /dev/null +++ b/linkshorter/nginx.conf @@ -0,0 +1,5 @@ +location = / {} + +location / { + rewrite ^/(.*) /goto.php?short=$1 last; +} -- cgit v1.2.3