[Moin-user] Re: remove moin.cgi from URL
Mehdi Hassanpour
mehdi.public at gmail.com
Wed Mar 29 13:40:05 EST 2006
Robert,
In Moin 1.5.2 This part of your Guide :
-----
There is a wonderfully simple workaround to this: edit moin.cgi so that it
contains, somewhere near the top (perhaps just below import sys). the
following:
1 import os
2 os.environ['SCRIPT_NAME'] = '/terry'
-----
returned me Internal Server Error, So I just skipped that and did this
instead
in moin.cgi :
Replaced
--
request = RequestCGI()
--
With
--
request = RequestCGI(properties={'script_name':'/terry'})
--
Just one question remains:
Do I need to add " cookie_path = "/" " in wikiconfig.py or the bug is fixed
in Moin 1.5.2 ?
On 3/29/06, Robert Schumann <robert at cantab.net> wrote:
>
> Mariano Absatz wrote:
>
> >>Mehdi Hassanpour wrote:
> >> >
> >> > I couldn't find any help removing cgi-bin & moin.cgi from URL ( in
> >> > MoinMoin 1.5.2 )
> >> >
> >> > Can you please tell me what should I do ? and how should I remove
> >> > chi-bin and moin.cgi from URL or hide them ?
> >>
> >>
> >>
> >Well... I have a similar problem.
> >
> >I have moin 1.5.2 running on an Apache virtual server that is chrooted
> >and run via "suexec" (it's an ensim server running on fedora core 1:
> >http://www.ensim.com/products/pro/linux/index.html)
> >
> >I compiled and installed Python 2.4.2 within the chrooted virtual host,
> >so I'm fine with this.
> >
> >Now, I installed following the directions in
> >http://moinmoin.wikiwikiweb.de/HelpOnInstalling/ApacheOnLinuxFtp
> >
> >I have ssh access to the virtual server, but I can't edit httpd.conf...
> >I can only configure the webserver via .htaccess.
> >
> >I have everything up and running. moin.cgi is in /var/www/cgi-bin which
> >is the only directory where I get to execute code.
> >
> >Now I want to "hide" the "/cgi-bin/moin.cgi" string from the URL.
> >
> >I do as instructed in
> >http://moinmoin.wikiwikiweb.de/HelpOnConfiguration/ApacheVoodoo (except
> >for the "RewriteLogLevel 0" which is invalid inside a .htaccess file,
> >anyway, that's the default value for the directive).
> >
> >Now it "kinda" works... that is, http://www.example.com/mywiki gets
> >executed correctly and shows the exact same page as if I use
> >http://www.example.com/cgi-bin/moin.cgi.
> >
> The solution to this problem is documented in
> http://moinmoin.wikiwikiweb.de/RobertSchumann/ApacheOnLinuxFTPRootWiki
>
> Robert.
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the live
> webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Moin-user mailing list
> Moin-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/moin-user
>
--
********************************************************
Yours Sincerely, Mehdi Hassanpour
----------------------------------------------------------------------
/* Of one Essence is the human race,
Thusly has Creation put the Base;
One Limb impacted is sufficient,
For all Others to feel the Mace.
~Saadi (persian poet) -1258 */
----------------------------------------------------------------------
http://ImPersian.com | http://Hezardastan.org
********************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20060329/b9258319/attachment.html>
More information about the Moin-user
mailing list