From: Michael J. Rubinsky Date: Tue, 18 May 2010 14:23:21 +0000 (-0400) Subject: add lighttpd style rewrite rules for pastie X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9d013cfccaa5cc78446834d286717aa3c7b4beb0;p=horde.git add lighttpd style rewrite rules for pastie --- 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" +)