Last modified: 2012-04-12 13:55:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T30106, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28106 - Problem with port setting when web server is behind NAT
Problem with port setting when web server is behind NAT
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Redirects (Other open bugs)
1.16.x
All All
: Normal trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-18 21:12 UTC by Nils Bösch
Modified: 2012-04-12 13:55 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nils Bösch 2011-03-18 21:12:40 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.
Comment 1 Bryan Tong Minh 2011-03-18 21:18:03 UTC
You need to set $wgServer in your LocalSettings.php to some explicit URL.
Comment 2 Nils Bösch 2011-03-18 21:40:40 UTC
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.
Comment 3 Sam Reed (reedy) 2011-03-18 21:41:17 UTC
DefaultSettings is loaded first

Do configuration at the bottom of LocalSettings, and it won't be overridden
Comment 4 Nils Bösch 2011-03-18 21:44:53 UTC
Sorry, my fault. Didn't see "require_once( "$IP/includes/DefaultSettings.php" );" and put it just before.
Thanks.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links