RewriteRule ^/wiki/(.*)$
http://www.x.com/wiki.fcgi?$1
[L,P,E=REMOTE_ADDR:%{REMOTE\_ADDR}]
RewriteRule ^/$
http://www.x.com/wiki.fcgi?HomePage [L,P]
(I made it be 'x.com' for the example so the line wouldn't warp so
horribly.
'L' means 'last rule to match, stop here if you match'
'P' means 'proxy' (as opposed to redirect)
'E' means 'set this environment variable'
If you don't set the environment variable, then edits appear under the
*server's* ip, instead of the *user's* ip.
You need to compile in mod_proxy, too, for the proxying to work, but
you don't need to turn proxying ON, oddly enough. (And you don't want
to turn it on, I think.)
Please ask more questions if this isn't completely helpful.
lcrocker(a)nupedia.com wrote:
Those only
appear to be static pages, through the magic of
apache's mod_rewrite.
So you're the one who did that? I tried to do that for my
personal Wiki <http://www.piclab.com/cgi-bin/wiki.pl>, but I
couldn't get it right. Would you mind posting (or sending to
me) the actual lines from your httpd.conf?
I asked Clifford the same question, since I assumed he did it--
it also requires tweaking UseMod to get the links on the pages
in the new format--but he never got back to me. I've already
done a lot of hacking on UseMod, so I'm comfortable with that,
but mod_rewrite has so far eluded me.0
--
*********************************************************************
*"The rifle itself has no moral stature, since it has no will of its*
* own. Naturally, it may be used by evil men for evil purposes, but *
* there are more good men than evil, and while the latter cannot be *
* pursuaded to the path of righteousness by propaganda, they can *
* certainly be corrected by good men with rifles." -Jeff Cooper *
********************************************************************