summaryrefslogtreecommitdiff
path: root/linkshorter/nginx.conf
diff options
context:
space:
mode:
authorroot2014-11-27 02:41:21 +0100
committerroot2014-11-27 02:41:21 +0100
commit92babb43a2a0041a71b54db35cbc9d2fba908a63 (patch)
tree8971101b53b6a6b12a092b456dc11a4dbfc034a3 /linkshorter/nginx.conf
parent2b24f3ef0e800f878177973eefcb28380a292503 (diff)
downloadtools.iamfabulous.de-92babb43a2a0041a71b54db35cbc9d2fba908a63.tar.gz
Rewrote the linkshorter.
Diffstat (limited to 'linkshorter/nginx.conf')
-rw-r--r--linkshorter/nginx.conf5
1 files changed, 5 insertions, 0 deletions
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;
+}