From: Matthijs Kooijman Date: Wed, 24 Jun 2009 19:25:29 +0000 (+0200) Subject: Make part of the exodus wiki available on /. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=8308210090225f35709688b59523eedf652e6281;p=matthijs%2Fprojects%2Fwipi.git Make part of the exodus wiki available on /. --- 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"), ]