[Mediawiki-l] Install: is putting www in front of URL
Coombes, Andrew
andrew.coombes at hants.gov.uk
Mon Oct 3 11:57:20 UTC 2005
I was supposed to add this line to LocalSettings.php wasn't I? Feeling slightly foolish now. Works a treat, and now I know what I am looking for I see it is even documented at http://meta.wikimedia.org/wiki/LocalSettings.php
Thanks Brion
-----Original Message-----
From: mediawiki-l-bounces at Wikimedia.org
[mailto:mediawiki-l-bounces at Wikimedia.org]On Behalf Of Coombes, Andrew
Sent: 03 October 2005 10:48
To: MediaWiki announcements and site admin list
Subject: RE: [Mediawiki-l] Install: is putting www in front of URL
This looked too good to be true ...
I went into DefaultSettings.php and changed
/**
* URL of the server
* It will be automaticly build including https mode
* @global string $wgServer
*/
$wgServer = '';
to $wgServer = 'http://cad.hants.gov.uk'; (and every combination could think of)
but this brought up the following error message:
Warning: Cannot modify header information - headers already sent by (output started at /home/cadhant/public_html/cadWiki/includes/DefaultSettings.php:1) in /home/cadhant/public_html/cadWiki/includes/OutputPage.php on line 393 (also the same message several times with line 326, 354, 355, 357 & 406)
I changed the file back, but this error message persists, and I now cannot access the wiki :o(
any thoughts, please?
Regards,
Andrew
MediaWiki: 1.4.10
PHP: 4.3.10 (cgi)
MySQL: 4.0.25-standard-log
-----Original Message-----
From: mediawiki-l-bounces at Wikimedia.org
[mailto:mediawiki-l-bounces at Wikimedia.org]On Behalf Of Brion Vibber
Sent: 30 September 2005 22:54
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Install: is putting www in front of URL
Coombes, Andrew wrote:
> I have just installed on a local intranet with URL http:
> //cad.ha...etc The install went perfectly. However, now, every time
> I try to go anywhere a "www" is prefixed to the URL, so http:
> //www.cad.ha... With the www the link fails, where can I get rid of
> this please? I have looked in the documentation, but cannot see the
> fix anywhere.
Fix your web server's configuration so it thinks it has the hostname you
want it to think it has, or override MediaWiki's $wgServer to use what
you want instead of what the web server is reporting to it.
-- brion vibber (brion @ pobox.com)
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
More information about the MediaWiki-l
mailing list