On Wed, Dec 25, 2002 at 07:47:30PM -0600, Derek Moore wrote:
Check this out:
I typo'd that earlier. Check it out. I'm sure the above is a fairly common typo, so somebody might wanna fix the mod_rewrite rules to allow for it.
Speaking of which, I got my Wikipedia configuration ironed out; here it is for anyone who is interested. Brion, could something like this be incoroporated into the INSTALL file? In mod_wiki I would like to alter the design such that direct access to php or other scripts can be abolished. That may require using POST for everything, and Javascript. The handling of the "&" character throws gum in the works.
I had to "touch" the logfile before the Wikipedia software would run.
httpd.conf:
Alias /mywiki-style /usr/src/newcodebase/stylesheets Alias /mywiki-upload /usr/src/newcodebase/images Alias /mywiki-wiki.phtml /usr/src/newcodebase/wiki.phtml Alias /mywiki-redirect.phtml /usr/src/newcodebase/redirect.phtml RewriteEngine On RewriteRule ^/mywiki$ /usr/src/newcodebase/wiki.phtml?title= RewriteRule ^/mywiki/(.*)$ /usr/src/newcodebase/wiki.phtml?title=$1
LocalSettings.php:
$wgServer = "http://reactor-core.org"; $wgStyleSheetPath = "$wgServer/mywiki-style"; $wgScript = "/mywiki-wiki.phtml"; $wgRedirectScript = "/mywiki-redirect.phtml"; $wgArticlePath = "$wgServer/mywiki/$1"; $wgUploadPath = "http://reactor-core.org/mywiki-upload"; $wgUploadDirectory = "/usr/src/newcodebase/images"; $wgLogo = "$wgUploadPath/wiki.png"; $wgDebugLogFile = "$wgUploadDirectory/logfile";
I hope this helps someone!
Jonathan