If you are not running on the canonical host, set $wgServer explicitly in your configuration. This is well documented in the list archives here, and it's one of the earliest options in DefaultSettings.php where you should see it pretty quickly when you go to look up the options.
I wasn't sure what to google for, but I didn't find this right away.
DefaultSettings.php is most assuredly not "supposed to be a black box".
Ok, I take that back. If it isn't supposed to be a black box, a quick mention of it in the INSTALL file would be helpful, although it does say:
"Chances are good there's a crucial step that hasn't made it into the documentation."
Which I guess is acurate.
Here's the comment in DefaultSettings.php:
/** * URL of the server * It will be automaticly build including https mode * @global string $wgServer */
It doesn't mention proxies here. What is frustrating is that install.php worked, and didn't report an error. Certainly the installer doesn't know it is running behind a proxy. I immediately went to LocalSettings.php, but no joy.
I finally figured out that redirect.php was redirecting the wrong URI, then I went looking through the redirect.php code to see how the URI was built, which then took me to the DefaultSettings.php.
I'm willing to modify the INSTALL file to either describe the LocalSettings.php/DefaultSettings.php relationship, or point to a document that does.
Christopher Baus
======== Implementing an HTTP proxy? Consider a fast, secure alternative http://www.baus.net/ads/license