[Moin-user] Configure so as to hide index.cgi
Joe Legner
joelegner at gmail.com
Tue Feb 10 15:37:08 EST 2009
On Tue, Feb 10, 2009 at 1:05 AM, Bradey Honsinger <bradeyh at gmail.com> wrote:
> On Mon, Feb 9, 2009 at 5:43 PM, Joe Legner <joelegner at gmail.com> wrote:
> > I am running MoinMoin 1.8.1 on Webfaction, which runs under
> > Apache (.htaccess only). My main script is named index.cgi.
> >
> > Currently index.cgi appears in all urls:
> >
> > http://www.mysite.com/index.cgi/FrontPage
> >
> > What I want to know is how to configure either MoinMoin or .htaccess so I
> > get the following:
> >
> > http://www.mysite.com/FrontPage
>
> I'm running MoinMoin on Webfaction as well, and doing the same thing.
> You're most of the way there--you just need to updated the properties
> line in index.cgi:
>
> http://forum.webfaction.com/viewtopic.php?pid=6118#p6118
>
> On Moin 1.7.3, it looks like this:
>
> ========
> --- index.cgi~ 2008-11-22 01:08:38.000000000 -0600
> +++ index.cgi 2008-11-22 02:06:33.000000000 -0600
> @@ -43,7 +43,7 @@
> # Properties
> # Allow overriding any request property by the value defined in
> # this dict e.g properties = {'script_name': '/mywiki'}.
> - ## properties = {}
> + properties = {'script_name': '/'}
>
> # Hotshot profile (default commented)
> ## hotshotProfile = name + '.prof'
> ========
>
> - Bradey
>
Thanks, that did the trick! I hade previously tried 'script_alias' on a
hunch, but it didn't work.
Does anyone know where the properties options for the CgiConfig class are
documented? I cannot find that for the life of me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20090210/e2c591c1/attachment.html>
More information about the Moin-user
mailing list