[toots@rastageeks.org: Re: [Pkg-mediawiki-devel] Crufty URL problem]

Kai Hendry hendry at iki.fi
Fri Sep 23 04:02:20 UTC 2005


Brion Vibber shed some light on the issue. I suggest putting some of
this in the package README? Or perhaps modify the conf.d/mediawiki.conf

----- Forwarded message from Romain Beauxis <toots at rastageeks.org> -----

Return-Path: kai.hendry+caf_hendry=dabase.com at gmail.com
Delivered-To: hendry at chopstick.dreamhost.com
Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.198])
	by chopstick.dreamhost.com (Postfix) with ESMTP id 8308CEBAAE
	for <hendry at dabase.com>; Thu, 22 Sep 2005 17:10:27 -0700 (PDT)
Received: by xproxy.gmail.com with SMTP id h28so626654wxd
        for <hendry at dabase.com>; Thu, 22 Sep 2005 17:10:27 -0700 (PDT)
Received: by 10.70.8.10 with SMTP id 10mr569609wxh;
        Thu, 22 Sep 2005 17:10:26 -0700 (PDT)
X-Forwarded-To: hendry at dabase.com
X-Forwarded-For: kai.hendry at gmail.com hendry at dabase.com
X-Gmail-Received: 0183d00c61307565287394a0e0db871bbc7b75bd
Delivered-To: kai.hendry at gmail.com
Received: by 10.70.50.15 with SMTP id x15cs10095wxx;
        Thu, 22 Sep 2005 17:10:26 -0700 (PDT)
Received: by 10.54.2.7 with SMTP id 7mr3479258wrb;
        Thu, 22 Sep 2005 17:10:26 -0700 (PDT)
Received: from uudestaan.iki.fi (uudestaan.iki.fi [212.16.100.1])
        by mx.gmail.com with ESMTP id g3si45194wra.2005.09.22.17.10.25;
        Thu, 22 Sep 2005 17:10:26 -0700 (PDT)
Received-SPF: neutral (gmail.com: 212.16.100.1 is neither permitted nor denied by best guess record for domain of toots at rastageeks.org)
Received: from smtp11.wanadoo.fr (smtp11.wanadoo.fr [193.252.22.31])
	by uudestaan.iki.fi (8.13.4/8.12.10) with ESMTP id j8N0AM9S022128
	for <hendry at iki.fi>; Fri, 23 Sep 2005 03:10:24 +0300 (EEST)
Received: from me-wanadoo.net (localhost [127.0.0.1])
	by mwinf1102.wanadoo.fr (SMTP Server) with ESMTP id F2C5F1C00767
	for <hendry at iki.fi>; Fri, 23 Sep 2005 02:10:16 +0200 (CEST)
Received: from duppy (APuteaux-152-1-51-45.w82-120.abo.wanadoo.fr [82.120.161.45])
	by mwinf1102.wanadoo.fr (SMTP Server) with ESMTP id C170B1C00480
	for <hendry at iki.fi>; Fri, 23 Sep 2005 02:10:16 +0200 (CEST)
X-ME-UUID: 20050923001016792.C170B1C00480 at mwinf1102.wanadoo.fr
Received: by duppy (Postfix, from userid 1000)
	id 45043EE9FE; Fri, 23 Sep 2005 02:10:19 +0200 (CEST)
From: Romain Beauxis <toots at rastageeks.org>
Organization: RastaGeeks
To: Kai Hendry <hendry at iki.fi>
Subject: Re: [Pkg-mediawiki-devel] Crufty URL problem
Date: Fri, 23 Sep 2005 02:10:12 +0200
User-Agent: KMail/1.8.2
References: <20050922005550.GD13399 at iki.fi> <43326D6D.6010601 at rastageeks.org> <20050922233136.GL16042 at iki.fi>
In-Reply-To: <20050922233136.GL16042 at iki.fi>
MIME-Version: 1.0
Content-Type: multipart/signed;
  boundary="nextPart2881003.q5hz2DA8xt";
  protocol="application/pgp-signature";
  micalg=pgp-sha1
Content-Transfer-Encoding: 7bit
Message-Id: <200509230210.18581.toots at rastageeks.org>

Le Vendredi 23 Septembre 2005 01:31, Kai Hendry a écrit :
> Another problem I have is the URL.
>
> I use Apache vhost and I just link to mediawiki like so:
>
> debian:501$ ls -al /srv/www/doc.soltecsoftware.com.au
> lrwxrwxrwx  1 root root 19 2005-09-22 09:50
> /srv/www/doc.soltecsoftware.com.au -> /var/lib/mediawiki/

Well, you should point your webhost's root dir directly to the /var/lib stuff.

> Though the URLs look like
> http://doc.soltecsoftware.com.au/index.php/Main_Page and
> http://doc.soltecsoftware.com.au/Main_Page doesn't work. I don't think
> I've changed anything in the default install. Crufty URLs featuring an
> unnecessary "index.php" is a bug.
>
> Any ideas how to fix this?

First of all, this is again the normal behaviour of upstream release we are 
not in relation to that.
Then you may use the apache mod_rewrite, but don't count on me for writing 
a .htaccess to this right now.

This can be an optional feature in the package, so if you do one, please let 
us know!
You can find a similar feature in drupal package.

BTW, please try to distinguish between MediaWiki original stuff and our 
packaging stuff, and try to ask directly to the people invloved in it.


Romain
-- 
So, won't you come with me;
I'll take you to a land of liberty
Where we can live - live a good, good life
And be free.



----- End forwarded message -----
----- Forwarded message from Brion Vibber <brion at pobox.com> -----

Return-Path: kai.hendry+caf_hendry=dabase.com at gmail.com
Delivered-To: hendry at chopstick.dreamhost.com
Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.202])
	by chopstick.dreamhost.com (Postfix) with ESMTP id 00726EB9E9
	for <hendry at dabase.com>; Thu, 22 Sep 2005 18:03:15 -0700 (PDT)
Received: by xproxy.gmail.com with SMTP id h27so486371wxd
        for <hendry at dabase.com>; Thu, 22 Sep 2005 18:03:14 -0700 (PDT)
Received: by 10.70.21.12 with SMTP id 12mr792242wxu;
        Thu, 22 Sep 2005 18:03:14 -0700 (PDT)
X-Forwarded-To: hendry at dabase.com
X-Forwarded-For: kai.hendry at gmail.com hendry at dabase.com
X-Gmail-Received: de2b0bfb3ea2aea364869c28e2d15d2bedba3875
Delivered-To: kai.hendry at gmail.com
Received: by 10.70.50.15 with SMTP id x15cs10867wxx;
        Thu, 22 Sep 2005 18:03:14 -0700 (PDT)
Received: by 10.54.13.65 with SMTP id 65mr260418wrm;
        Thu, 22 Sep 2005 18:03:14 -0700 (PDT)
Received: from uudestaan.iki.fi (uudestaan.iki.fi [212.16.100.1])
        by mx.gmail.com with ESMTP id 38si121681wrl.2005.09.22.18.03.12;
        Thu, 22 Sep 2005 18:03:14 -0700 (PDT)
Received-SPF: neutral (gmail.com: 212.16.100.1 is neither permitted nor denied by domain of brion at pobox.com)
Received: from thorn.pobox.com (thorn.pobox.com [208.210.124.75])
	by uudestaan.iki.fi (8.13.4/8.12.10) with ESMTP id j8N13BP8012559
	for <hendry at iki.fi>; Fri, 23 Sep 2005 04:03:12 +0300 (EEST)
Received: from thorn (localhost [127.0.0.1])
	by thorn.pobox.com (Postfix) with ESMTP id 52763D0;
	Thu, 22 Sep 2005 20:56:31 -0400 (EDT)
Received: from [10.0.0.87] (adsl-69-230-207-101.dsl.irvnca.pacbell.net [69.230.207.101])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by thorn.sasl.smtp.pobox.com (Postfix) with ESMTP id D18B83BCA;
	Thu, 22 Sep 2005 20:56:29 -0400 (EDT)
Message-ID: <43335447.5090506 at pobox.com>
Date: Thu, 22 Sep 2005 18:03:03 -0700
From: Brion Vibber <brion at pobox.com>
User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Kai Hendry <hendry at iki.fi>,
	MediaWiki announcements and site admin list <mediawiki-l at Wikimedia.org>
Subject: Re: [Mediawiki-l] Help:Editing and Crufty URLs
References: <20050923003135.GO16042 at iki.fi>
In-Reply-To: <20050923003135.GO16042 at iki.fi>
X-Enigmail-Version: 0.89.6.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature";
 boundary="------------enig2934D599D7F120129FFFAF8D"

Kai Hendry wrote:
>I have a couple of problems from a default debian mediawiki install.
>Debian packagers seem to think it is an upstream problem, so here I am
>relaying the message.
>
>First problem was with the missing Help:Editing page.
>
>http://lists.alioth.debian.org/pipermail/pkg-mediawiki-devel/2005-September/000045.html

There is no in-wiki end-user documentation shipped with the wiki so far.
Perhaps someday there will be, but there is none now. Only a brief
paragraph is added to the main page at installation.

>And crufty URLs with "index.php".
>
>http://lists.alioth.debian.org/pipermail/pkg-mediawiki-devel/2005-September/000047.html

You should never, ever put a virtual wiki directory at the web root, as
has been explained here numerous times. To summarize:
* It blocks and interferes with standard web items such as robots.txt
and favicon.ico
* It blocks and interferes with components of the wiki (scripts, CSS,
images)
* It blocks and interferes with everything else on your entire website
* If you make special exceptions for the above it blocks out entire page
titles from being usable in your wiki.

If that doesn't discourage you and you decide to set up rewrite rules
for that, note that some people also try to eliminate the distinct
script prefix from dynamic action URLs, such as editing. You should
absolutely not do that as it has additional problems:
* No way to block dynamic addresses with robots.txt, so you will receive
much more crawler load on your server
* People doing this often disable a security protection for action=raw,
opening a serious cross-site scripting vulnerability for anyone visiting
the site in Internet Explorer.

If you just want something prettier than 'index.php', then set up a
default alias (if you're able to configure the Apache configuration) and
change $wgArticlePath in LocalSettings.php to match. The defaults in the
installer are designed primarily for compatibility.

-- brion vibber (brion @ pobox.com)



----- End forwarded message -----
----- Forwarded message from Brion Vibber <brion at pobox.com> -----

Return-Path: kai.hendry+caf_hendry=dabase.com at gmail.com
Delivered-To: hendry at chopstick.dreamhost.com
Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.203])
	by chopstick.dreamhost.com (Postfix) with ESMTP id A652BEB9B4
	for <hendry at dabase.com>; Thu, 22 Sep 2005 18:29:37 -0700 (PDT)
Received: by xproxy.gmail.com with SMTP id h28so642947wxd
        for <hendry at dabase.com>; Thu, 22 Sep 2005 18:29:37 -0700 (PDT)
Received: by 10.70.49.12 with SMTP id w12mr622754wxw;
        Thu, 22 Sep 2005 18:29:37 -0700 (PDT)
X-Forwarded-To: hendry at dabase.com
X-Forwarded-For: kai.hendry at gmail.com hendry at dabase.com
X-Gmail-Received: 937d4a26394140b6c7f799c739e34117ff2cad5e
Delivered-To: kai.hendry at gmail.com
Received: by 10.70.50.15 with SMTP id x15cs11280wxx;
        Thu, 22 Sep 2005 18:29:37 -0700 (PDT)
Received: by 10.54.104.19 with SMTP id b19mr2186882wrc;
        Thu, 22 Sep 2005 18:29:37 -0700 (PDT)
Received: from uudestaan.iki.fi (uudestaan.iki.fi [212.16.100.1])
        by mx.gmail.com with ESMTP id 44si109502wri.2005.09.22.18.29.35;
        Thu, 22 Sep 2005 18:29:37 -0700 (PDT)
Received-SPF: neutral (gmail.com: 212.16.100.1 is neither permitted nor denied by domain of brion at pobox.com)
Received: from thorn.pobox.com (thorn.pobox.com [208.210.124.75])
	by uudestaan.iki.fi (8.13.4/8.12.10) with ESMTP id j8N1TYIG028105
	for <hendry at iki.fi>; Fri, 23 Sep 2005 04:29:34 +0300 (EEST)
Received: from thorn (localhost [127.0.0.1])
	by thorn.pobox.com (Postfix) with ESMTP id 6935DD6
	for <hendry at iki.fi>; Thu, 22 Sep 2005 21:22:53 -0400 (EDT)
Received: from [10.0.0.87] (adsl-69-230-207-101.dsl.irvnca.pacbell.net [69.230.207.101])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by thorn.sasl.smtp.pobox.com (Postfix) with ESMTP id 1E05539C6
	for <hendry at iki.fi>; Thu, 22 Sep 2005 21:22:52 -0400 (EDT)
Message-ID: <43335A7A.9050809 at pobox.com>
Date: Thu, 22 Sep 2005 18:29:30 -0700
From: Brion Vibber <brion at pobox.com>
User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Kai Hendry <hendry at iki.fi>
Subject: Re: [Mediawiki-l] Help:Editing and Crufty URLs
References: <20050923003135.GO16042 at iki.fi> <43335447.5090506 at pobox.com> <20050923012347.GR16042 at iki.fi>
In-Reply-To: <20050923012347.GR16042 at iki.fi>
X-Enigmail-Version: 0.89.6.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature";
 boundary="------------enigD83466BAC94E2E20FB73A546"

Kai Hendry wrote:
>On 2005-09-22T18:03-0700 Brion Vibber wrote:
>
>>If you just want something prettier than 'index.php', then set up a
>>default alias (if you're able to configure the Apache configuration) and
>>change $wgArticlePath in LocalSettings.php to match. The defaults in the
>>installer are designed primarily for compatibility.
>
>
>Do you have an example of this? I like to think I am pretty with Apache,
>but I'm not sure how I should be using Alias get rid of index.php from
>showing up.

That's documented here:
http://meta.wikimedia.org/wiki/MediaWiki_FAQ#How_do_I_make_my_base_URLs_shorter.3F

More specifically here:
http://meta.wikimedia.org/wiki/Eliminating_index.php_from_the_url#Using_aliases_in_httpd.conf

Note that if you chang the URL paths you'll want to clear any cached
page renderings; either do a DELETE FROM objectcache in the database or
set $wgCacheEpoch in LocalSettings.php to the current UTC timestamp (see
DefaultSettings.php for all configurable settings); or if you don't have
many pages just re-render them individually (when they are edited or if
you use ?action=purge on them individually they will be cleared and
re-rendered).

-- brion vibber (brion @ pobox.com)



----- End forwarded message -----



More information about the Pkg-mediawiki-devel mailing list