Last modified: 2012-04-12 13:55:00 UTC
I installed it on a webserver running on port 81 which is behind a router using NAT which translates it to port 80. When I now want to use wikimedia from the outside (http://some.dns.name/wiki/), it replaces automatically the standard port with 81 while redirekting (http://some.dns.name:81/wiki/index.php?title=Main_Page) to the start page. This is done in DefaultSettings.php in line 79 to 85 and commenting these lines solved the problem for me. I'm not sure, though, that this results in other problems when not using the standard port.
You need to set $wgServer in your LocalSettings.php to some explicit URL.
There is not $wgServer in LocalSettings.php. And even if I add it, it will be overridden in DefaultSettings.php. Maybe I misunderstood you, so I don't reopen it.
DefaultSettings is loaded first Do configuration at the bottom of LocalSettings, and it won't be overridden
Sorry, my fault. Didn't see "require_once( "$IP/includes/DefaultSettings.php" );" and put it just before. Thanks.