#!/usr/bin/perl -w # # Copyright (C) 2002 Wim Kerkhoff # # This program is free software; you can redistribute it and/or # modify it under the same terms as Perl itself. # use strict; use Apache (); use Apache::MiniWiki (); # obtain a reference to the Apache request object my $r = Apache->request; # define some variables... normally these are defined # by PerlSetVar in httpd.conf $r->dir_config->add(datadir => '/home/foo/db/wiki/'); $r->dir_config->add(vroot => '/cgi-bin/wiki.cgi'); # call the mod_perl handler, passing the request object as an argument Apache::MiniWiki::handler($r);