[Moin-user] running 1.2.4 with mod_python

Roger Haase crosseyedpenguin at yahoo.com
Fri Dec 24 08:37:01 EST 2004


--- Jim Carroll <jcarroll at totality.com> wrote:


> I
> didn't leave it that way for long:
> 
> http://tosfoljsl01.totality.com/aacom/
> 
> http://tosfoljsl01.totality.com/aacom//JimCarroll
> 
> (above link shows the same page as the first link)
> 
> http://tosfoljsl01.totality.com/aacom//JimCarroll/FrontPage
> 

The double slashes // above indicate you have an extra slash somewhere
in your .htaccess files.

The Apache web site docs for .htaccess files recommends that you not
use them if you have access to httpd.conf. If you have the bug-free
version of mod-python that is loaded automatically in the current
Apache version, changing from cgi to mod-python requires only
commenting out one statement and adding an equivalent location
directive:

'''
#ScriptAlias /mywiki         "/somepath/Moin/mywiki/moin.cgi" 

<Location /mywiki>
    SetHandler python-program
    PythonPath "['/somepath/Moin/mywiki/']+sys.path"
    PythonHandler MoinMoin.request::RequestModPy.run
    PythonDebug On
</Location>
'''

Note the location directive authorizes a program -- the program can do
whatever it wants subject to OS permissions. Directory statements and
.htaccess end up doing the same, but tend to give a false sense that
they are somehow giving access to one directory and protecting others.

Roger Haase



		
__________________________________ 
Do you Yahoo!? 
Jazz up your holiday email with celebrity designs. Learn more. 
http://celebrity.mail.yahoo.com




More information about the Moin-user mailing list