From 9d013cfccaa5cc78446834d286717aa3c7b4beb0 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Tue, 18 May 2010 10:23:21 -0400 Subject: [PATCH] add lighttpd style rewrite rules for pastie --- pastie/docs/lighttpd-pastie.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pastie/docs/lighttpd-pastie.conf diff --git a/pastie/docs/lighttpd-pastie.conf b/pastie/docs/lighttpd-pastie.conf new file mode 100644 index 000000000..e1dcfe7a6 --- /dev/null +++ b/pastie/docs/lighttpd-pastie.conf @@ -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" +) -- 2.11.0