add lighttpd style rewrite rules for pastie
authorMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 18 May 2010 14:23:21 +0000 (10:23 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 18 May 2010 14:23:21 +0000 (10:23 -0400)
pastie/docs/lighttpd-pastie.conf [new file with mode: 0644]

diff --git a/pastie/docs/lighttpd-pastie.conf b/pastie/docs/lighttpd-pastie.conf
new file mode 100644 (file)
index 0000000..e1dcfe7
--- /dev/null
@@ -0,0 +1,13 @@
+## This file should be reviewed prior to inclusion in your lighttpd
+## configuration.  Specifically, if you have kronolith somewhere other than
+## /horde/kronolith you will need to edit the following rules to match your server
+## configuration.
+
+## This file should be included in your lighttpd.conf file with the "include"
+## directive. Example:
+##   include "path/to/lighttpd-pastie.conf"
+## The exact path you use will of course depend on your specific configuration.
+
+url.rewrite-once += (
+        "^/horde/pastie/uuid/([0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]+)$" => "/horde/pastie/view.php?uuid=$1"
+)