On Sat, Jan 23, 2010 at 1:55 PM, Alexander Brüning <ksh...@lamamail.de> wrote: > Hi, > > I'm running MoinMoin 1.9 in Lighttpd via fcgi at /wiki-engine and use > redirects to make it look like it's running at /. Basically the same > setup as here: > http://moinmaster.wikiwikiweb.de/HelpOnInstalling/FastCgi#Deploying_on_lighttpd > > The update from 1.8 to 1.9 brought a new fcgi handler with it that > doesn't seem to have an equivalent of the > > properties = {'script_name': '/'} > > variable. I tried to set SCRIPT_NAME via lighttpd but it doesn't work so > I hacked MoinMoin/support/werkzeug/wrappers.py to always set script_root > to /: > > + path = ('/').rstrip('/') > - path = (self.environ.get('SCRIPT_NAME') or '').rstrip('/') > (line 339) > > There has to be a better way to do this, right?
Yes, moinmoin now uses werkzeug, so you can use this: http://werkzeug.pocoo.org/documentation/dev/contrib/fixers.html#werkzeug.contrib.fixers.LighttpdCGIRootFix -- Radomir Dopieralski, http://sheep.art.pl ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user