Re: mod_rewrite functional patch

2004-11-19 Thread André Malo
* Christian Parpart <[EMAIL PROTECTED]> wrote:

> > Actually you don't need to patch httpd-2.0 for *that*. You can write a
> > small module, which registers the mapper function at runtime.
> 
> This is a way to much overhead, just for this function, isn't it?

Given the fact, that the 2.0 architecture is built for such extensions - 
not much. And compared to the effort of maintaining a patch... ;-)

> > (I'm a happy Gentoo user, though I'm naturally using my 
> > own httpd ebuild ;-))
> 
> *heh*... however, it's not really nice (personally) to read, that you're
> using your own ebuild. I hope the next ebuild updates in future (mid
> december) will change your mind ;-)

Probably not. I'm using some own patches, different config scheme, etc., but
I'll look at it from time to time to see what happens to the httpd :)

> > However, I think, the map is way too special for common inclusion. A
> > better way would be to provide a general replace map (starting with 2.1,
> > I'd suggest). For 2.0 releases the small support module should be enough.
> > How does this sound?
> 
> That replace map sounds great to me. this would fill the requirements for 
> MediaWiki (easily) and could be use for more general purposes as well.
> 
> However, I fear a bit for the syntax to be used in httpd.conf then since I'm
> not that creative ATM.

Something like:

RewriteMap replace int:replace
RewriteRule (.*) ${replace:x|y}

'misusing' the default value, which isn't even needed in that case. Though
this would require some more code changes in mod_rewrite (passing the default
value to the map), this sounds like a good idea to me - and should not be in
2.0.

> I submitted a patch in [1] just before I read your mail. I'm willing to
> spend some time tonight to write that module - but I'll maybe need some help
> anyway. lets see.

No problem. It reminds (e.g. me) that there's something open ;)

nd
-- 
"Umfassendes Werk (auch fuer Umsteiger vom Apache 1.3)"
  -- aus einer Rezension




Re: mod_rewrite functional patch

2004-11-19 Thread Christian Parpart
On Friday 19 November 2004 10:36 pm, André Malo wrote:
> * Christian Parpart <[EMAIL PROTECTED]> wrote:
> > I recently installed MediaWiki [1] (as used and developed on/by
> > WikiPedia [2]). This wiki software allows an intuitive use of URLs
> > as long as the host admin has patched his apache to allow the
> > proper rewrite rules [3].
> >
> > As Gentoo is about to support this software, we cannot expect every
> > host admin to patch their installed apache software by hand (not
> > everyone knows how to do this).
> > MediaWiki officially provides a patch for apache 1.3.x. Since the
> > development goes towards 2.0 (and 2.1) I adapted the patch to 2.0 [4].
>
> Actually you don't need to patch httpd-2.0 for *that*. You can write a
> small module, which registers the mapper function at runtime.

This is a way to much overhead, just for this function, isn't it?

> I can help 
> you, if you like 

that would be great. (see below)

> (I'm a happy Gentoo user, though I'm naturally using my 
> own httpd ebuild ;-))

*heh*... however, it's not really nice (personally) to read, that you're using 
your own ebuild. I hope the next ebuild updates in future (mid december) will 
change your mind ;-)

> However, I think, the map is way too special for common inclusion. A better
> way would be to provide a general replace map (starting with 2.1, I'd
> suggest). For 2.0 releases the small support module should be enough. How
> does this sound?

That replace map sounds great to me. this would fill the requirements for 
MediaWiki (easily) and could be use for more general purposes as well.

However, I fear a bit for the syntax to be used in httpd.conf then since I'm 
not that creative ATM.

I submitted a patch in [1] just before I read your mail. I'm willing to spend 
some time tonight to write that module - but I'll maybe need some help 
anyway. lets see.

Regards,
Christian Parpart.

-- 
http://www.winterschur.de/?fey <-- help me to get a sheep!
 23:24:18 up 21 days, 15:54,  0 users,  load average: 0.95, 1.19, 1.15


pgpcnsTB8Lrau.pgp
Description: PGP signature


Re: mod_rewrite functional patch

2004-11-19 Thread André Malo
* Christian Parpart <[EMAIL PROTECTED]> wrote:

> I recently installed MediaWiki [1] (as used and developed on/by 
> WikiPedia [2]). This wiki software allows an intuitive use of URLs
> as long as the host admin has patched his apache to allow the
> proper rewrite rules [3].
> 
> As Gentoo is about to support this software, we cannot expect every 
> host admin to patch their installed apache software by hand (not 
> everyone knows how to do this).
> MediaWiki officially provides a patch for apache 1.3.x. Since the 
> development goes towards 2.0 (and 2.1) I adapted the patch to 2.0 [4].

Actually you don't need to patch httpd-2.0 for *that*. You can write a small
module, which registers the mapper function at runtime. I can help you, if you
like (I'm a happy Gentoo user, though I'm naturally using my own httpd ebuild
;-))

However, I think, the map is way too special for common inclusion. A better
way would be to provide a general replace map (starting with 2.1, I'd
suggest). For 2.0 releases the small support module should be enough. How does
this sound?

nd
-- 
> [...] weiß jemand zufällig, was der Tag DIV ausgeschrieben bedeutet?
DIVerses. Benannt nach all dem unstrukturierten Zeug, was die Leute da
so reinpacken und dann absolut positionieren ...
   -- Florian Hartig und Lars Kasper in dciwam