From 8308210090225f35709688b59523eedf652e6281 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 24 Jun 2009 21:25:29 +0200 Subject: [PATCH] Make part of the exodus wiki available on /. --- conf/exodus.py | 4 ++++ conf/farmconfig.py | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/conf/exodus.py b/conf/exodus.py index 868e666..3b85532 100644 --- a/conf/exodus.py +++ b/conf/exodus.py @@ -36,5 +36,9 @@ class Config(FarmConfig): editor_default = 'text' # internal default, just for completeness theme_default = 'exodus' + + # All urls that would be generated below /wipi/Site can be pointed to + # /Site instead, since lighttpd maps /Site to the wipi as well. + url_mappings = {'/wipi/Site' : '/Site'} # vim: set ts=8 sts=4 sw=4 expandtab: diff --git a/conf/farmconfig.py b/conf/farmconfig.py index 7653434..0fc161d 100644 --- a/conf/farmconfig.py +++ b/conf/farmconfig.py @@ -47,6 +47,11 @@ wikis = [ # --------------------------------------------------------------- ("exodus", r"exodus.evolution-events.nl/wipi"), ("exodus", r"exodus-nieuw.evolution-events.nl/wipi"), + # Pretend we're also available at /. In reality, only the /Site pages are + # available there due to lighttpd rewriting. Due to proper setting of + # script-name by lighttpd and the url_mappings site in the exodus config, + # all links still work too! + ("exodus", r"exodus-nieuw.evolution-events.nl"), ("extinction", r"extinction.evolution-events.nl/wipi"), ] -- 2.30.2