Description

Currently it is not possible to modify the script_name easily though it is an option which value differs in many cases. Without internal hacking, the following scenarios are broken currently:

The problem is that the webserver does not know where to trim the script_path as the script name vanished from the request URL at all. Example:

So we need a possibility to set the script_name in MoinMoin manually as well (not for all installations, but many will need it).

Details

See above.

Workaround

Modify the request.py code to rewrite SCRIPT_NAME accordingly.

Discussion

I could easily use rewrite rules and cgi with Apache 1 and 2 on Mac OS X, using this setup:

<Directory "/path/to">
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>

RewriteEngine On
RewriteLogLevel 0
RewriteRule ^/fix-wiki(.*)$ /path/to/htdocs/$1 [last]
RewriteRule ^/fix(/)?(.*)$ /path/to/moin.cgi/$2 [type=application/x-httpd-cgi]

This bug will be fixed by propagating the use of the properties parameter of the request constructor (done by AlexanderSchremmer) and applying a patch written by Nir for mod_py.

Plan


CategoryMoinMoinBugFixed CategoryRelease1.3.5

MoinMoin: MoinMoinBugs/ScriptNameHasToBeAnOption (last edited 2007-10-29 19:08:08 by localhost)