### # This is an example config file for users of lighttpd. # # These are EXAMPLES of how you can implement some of the same .htaccess rules # that are contained in various Horde applications. DO NOT just include this # file blindly in your lighttpd.conf file without understanding what you are # doing or at the very least, reading the comments in each section. # # If you already have any kind of special config rules, these # will most likely need to be integrated / combined with your existing # settings instead of included with this file. ### ## Deny access to application template, script,and lib files. ## (For lighttpd < 1.5) $HTTP["url"] =~ "(/templates/|/scripts/|/lib/|/po/|/locale/|/config/)" { url.access-deny = ("") } ## For lighttpd >= 1.5 you would use the following syntax instead: ## $PHYSICAL["path"] =~ "(/templates/|/scripts/|/lib/|/po/|/locale/|/config/)" { ## access.deny-all = "enable" ## } ## Some rewrite rules for various Horde applications for "pretty urls" ## If you have any existing rewrite rules in your config you ## will need to append these to your array. Again, you should ## change the path to whatever your real path the various apps are. url.rewrite = ( ## For Whups - pretty URLs for slugs "^/horde/whups/queue/([0-9]+)/?$" => "/horde/whups/queue/index.php?id=$1", "^/horde/whups/queue/([0-9]+)/rss/?$" => "/horde/whups/queue/rss.php?id=$1", "^/horde/whups/queue/(a-zA-Z0-9_]+)/?$ => "/horde/whups/queue/index.php?slug=$1", "^/horde/whups/queue/(a-zA-Z0-9_]+)/rss/?$ => "/horde/whups/queue/rss.php?id=$1", ## For Chora - pretty URLs "^/horde/chora/co.php/(.*)$" => "/horde/chora/co.php?f=$1", "^/horde/chora/diff.php/(.*)$ => "/horde/chora/diff.php?f=$1", "^/horde/chora/(.*)$" => "/horde/chora/browse.php?f=$1", ## For Wicked - pretty URLs "^/horde/wicked/([A-Za-z0-9.*]*)$" => "/horde/wicked/display.php?page=$1" )