Description

Farmconfig does not match url as expected, because it ignores the port part, which is part of the url according to the rfc.

Steps to reproduce

  1. Try to run two wikis using standalone or twisted, each one on a different port, e.g. 8000 and 8001.
  2. Both localhost:8000 and localhost:8001 are not matched.

Example

You get warning in twisted log:

2004/12/14 14:39 IST [HTTPChannel,0,192.115.134.51] /Volumes/Home/nir/Projects/moin/main/MoinMoin/multiconfig.py:97: exceptions.UserWarning: could not find a config file for url: nirs.dyndns.org/HelpContents; default configuration used instead.

And an empty wiki - header, title, and footer - for every page.

Details

MoinMoin Version

moin--main--1.3--patch-447

Workaround

Discussion

Patch 442 improved the situation for standalone, now standalone does use the the port in the url, and you can configure easily multiple wikis using the port.

Patch 535 fixes it for twisted.

Somebody please check with modpy/cgi/fcgi and reopen if broken.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/FarmconfigUrlMatching (last edited 2007-10-29 19:10:12 by localhost)