[Mediawiki-l] DNS problem?

Trevor Sullivan pcgeek86 at gmail.com
Mon Mar 21 12:25:32 UTC 2005


Brion Vibber wrote:

> Trevor Sullivan wrote:
>
>> Hello all, I have a problem with MediaWiki running on Apache 2.0 on
>> FreeBSD 5.2.1. Whenever I goto my server's page //server/mediawiki it
>> always forwards me to the server's FQDN
>> (server.pharag.biz/mediawiki/index.php) and will refuse to work
>> otherwise. This only happens with MediaWiki and I can't seem to figure
>> out why only MediaWiki forces the usage of the server's local FQDN. Any
>> ideas? I can provide further information if need be. Thank you!
>
>
> The HTTP standard requires that redirects use a full URL (including
> hostname). The hostname reported by your web server is used to construct
> full URLs.
>
> If your web server is misconfigured and reporting the wrong name, you
> should probably fix it.
>
> In a pinch, you can set $wgServer explicitly in LocalSettings.php
> (normally it's autodetected in DefaultSettings.php).
>
> -- brion vibber (brion @ pobox.com)
>
>------------------------------------------------------------------------
>
>_______________________________________________
>MediaWiki-l mailing list
>MediaWiki-l at Wikimedia.org
>http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>  
>
Thanks for the help Brian. I'm curious though...why does only MediaWiki 
do this, and not HL Stats or Psychostats, or phpMyAdmin (which I have 
all running on the same box)? And if you're accessing it externally, how 
do I fix this problem? I don't own the domain that I'm using for my 
internal network and I just want to use it with a DDNS domain. Every 
time you try to goto this domain however, it tries to redirect using the 
server's FQDN. If I change that $wgServer var in LocalSettings.php to my 
DDNS domain, won't this mess up trying to access the webserver 
internally? Thank you!

-Trevor



More information about the MediaWiki-l mailing list