[Moin-user] extra slash

Aaron Landerkin landyman at gmail.com
Fri Oct 9 15:54:20 EDT 2009


Hi All -Even though I have a newer mod_python installation, I found some
documentation on using the moinmodpy.py script instead of the
MoinMoin.request.request_modpython::Request.run handler. So, I tried it out
-- and it worked :-)

I copied the moinmodpy.py script to the root of my wiki installation, then
setup my httpd.conf like this:

Alias /moin_static185 "/hsphere/local/home/user/website/moin/wiki/htdocs"
Alias /moin "/hsphere/local/home/user/website/moin/moinmodpy.py"

<Location /moin>
AddHandler python-program .py
PythonPath "['/hsphere/local/home/user/website/moin'] + sys.path"
PythonHandler moinmodpy
PythonDebug On
</Location>

I really have no idea why this worked and not the normal way, and I haven't
tried to go into it to see -- but it worked.

Thanks again for everyone's help.

-Aaron

On Fri, Oct 9, 2009 at 11:48 AM, Aaron Landerkin <landyman at gmail.com> wrote:

> Hi Thomas -Yes, I am aware of that -- I was hoping I could get it to work
> with mod_python, since that is what this particular server has (wsgi isn't
> even installed), and I don't have much control over that.
>
> I'll see if I can switch it to another server and if that solves my
> problem.
>
> Thanks.
> -Aaron
>
>
> On Fri, Oct 9, 2009 at 10:02 AM, Thomas Waldmann <tw-public at gmx.de> wrote:
>
>> Hi Aaron,
>>
>> try to NOT use mod_python, but mod_wsgi.
>>
>> mod_python is often a pain, causing strange effects.
>>
>> mod_wsgi is much more reliable and comfortable and implements WSGI,
>> which is teh future anyway.
>>
>> Cheers,
>>
>> Thomas
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Moin-user mailing list
>> Moin-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/moin-user
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20091009/10d33b27/attachment.html>


More information about the Moin-user mailing list