Mailing List Archive

Problems with MediaWiki on a subdomain
Hello,

I am having difficulties installing MediaWiki on a subdomain.

I installed it on http://filozofija.imped.net (which is also reachable
via http://www.filozofija.imped.net) and when enter that URL, the Wiki's
index.php automatically redirects me to
http://www.imped.net/index.php/Glavna_strana, a "nonexistent" page
(there's no wiki there; Glavna_strana is Serbian translation of English
Main_Page).

But, when I manually enter
http://filozofija.imped.net/index.php/Glavna_strana, for example,
everything seems fine.

What could be the problem? What to check first?

Thanks,
Ivan.
Re: Problems with MediaWiki on a subdomain [ In reply to ]
Quoting Ivan Savcic, from the post of Thu, 28 Oct:
> Hello,
>
> I am having difficulties installing MediaWiki on a subdomain.
>
> I installed it on http://filozofija.imped.net (which is also reachable
> via http://www.filozofija.imped.net) and when enter that URL, the Wiki's
> index.php automatically redirects me to
> http://www.imped.net/index.php/Glavna_strana, a "nonexistent" page
> (there's no wiki there; Glavna_strana is Serbian translation of English
> Main_Page).

care to list your rewrite rules for apache?

--
Not like other guys
Ira Abramov
http://ira.abramov.org/email/
Re: Problems with MediaWiki on a subdomain [ In reply to ]
On Oct 28, 2004, at 5:08 AM, Ivan Savcic wrote:
> I installed it on http://filozofija.imped.net (which is also reachable
> via http://www.filozofija.imped.net) and when enter that URL, the
> Wiki's index.php automatically redirects me to
> http://www.imped.net/index.php/Glavna_strana, a "nonexistent" page
> (there's no wiki there; Glavna_strana is Serbian translation of
> English Main_Page).

Your web server is reporting a different hostname than you're using
externally. When the wiki uses an HTTP redirect to send you to a
canonical page URL it must according to the spec use a full URL, so
it's using the hostname that the server claims to be.

Override it in LocalSettings.php:
$wgServer = "http://www.filozofija.imped.net";

-- brion vibber (brion @ pobox.com)
Re: Problems with MediaWiki on a subdomain [ In reply to ]
Brion Vibber wrote:
> On Oct 28, 2004, at 5:08 AM, Ivan Savcic wrote:
>
>> I installed it on http://filozofija.imped.net (which is also reachable
>> via http://www.filozofija.imped.net) and when enter that URL, the
>> Wiki's index.php automatically redirects me to
>> http://www.imped.net/index.php/Glavna_strana, a "nonexistent" page
>> (there's no wiki there; Glavna_strana is Serbian translation of
>> English Main_Page).
>
>
> Your web server is reporting a different hostname than you're using
> externally. When the wiki uses an HTTP redirect to send you to a
> canonical page URL it must according to the spec use a full URL, so it's
> using the hostname that the server claims to be.
>
> Override it in LocalSettings.php:
> $wgServer = "http://www.filozofija.imped.net";
>
> -- brion vibber (brion @ pobox.com)

Thank you very much!!! It worked like a charm!

Ivan.