view wiki/server/moinmodpy.htaccess @ 3580:fc2f05f2b0bd

server adaptor scripts: make sys.path / logging configuration / comments consistent
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 11 May 2008 22:42:05 +0200
parents d9bb94b15702
children
line wrap: on
line source
##
## (c) 2004 by Oliver Graf <ograf@bitart.de>
##
## .htaccess file for using mod_python with MoinMoin
##
## copy this file to the path below which you want to have your wiki
## instance and edit the paths to match your configuration.
##
# With which name should the wiki be accessible? (wiki)
<Files wiki>

  # Use mod_python as handler
  SetHandler python-program

  # add the path where the moinmodpy.py wrapper can be found
  PythonPath "['/path/to/share/moin/server']+sys.path"

  # use the moinmodpy wrapper to handle requests
  PythonHandler moinmodpy

</Files>
# voila.

##
## NOTE: due to a bug in mod_python < 3.1.3 you 
##       need to use the wrapper above.
##
##       If you fix this bug, you can use MoinMoin without the
##       wrapper. See MoinMoin INSTALL.html how to fix the bug.
##       Use the following htaccess with a fixed mod_python:
##
# With which name should the wiki be accessible? (wiki)
#<Files wiki>
#
#  # Use mod_python as handler
#  SetHandler python-program
#
#  # set code search path to find farmconfig, wikiconfig and MoinMoin code package
#  PythonPath "['/path/to/farmconfigdir', '/path/to/wikiconfigdir', '/path/to/moin/lib/python']+sys.path"
#
#  # choose the ModPy Request class as handler
#  PythonHandler MoinMoin.request.request_modpython::Request.run
#
#</Files>