ServerAdmin webmaster@utos.org DocumentRoot /var/www/utos.org/wiki/ ServerName collective.utos.org ServerAlias wiki.utosf.org collective.utosf.org wiki.utos.org community.utos.org collective.utosc.org wiki.utosc.org # Rewrite urls RewriteEngine On RewriteLogLevel 0 # map /wiki static files to Moin htdocs RewriteRule ^/wiki/(.*)$ /usr/share/moin/htdocs/$1 [last] RewriteRule ^/robots.txt$ /usr/share/moin/htdocs/robots.txt [last] RewriteRule ^/favicon.ico$ /usr/share/moin/htdocs/favicon.ico [last] # map everything else to server script RewriteRule ^(.*)$ /usr/share/moin/collective/moinmodpy.py$1 # Modpy stuff AddHandler python-program .py # Add the path to the wiki directory, where # moinmodpy.py and wikiconfig.py are located. PythonPath "['/usr/share/moin/collective'] + sys.path" PythonHandler moinmodpy # # SetHandler python-program # # Add the path of your wiki directory # PythonPath "['/usr/share/moin/collective'] + sys.path" # PythonHandler MoinMoin.request::RequestModPy.run # ErrorLog logs/collective.utos.org-error_log CustomLog logs/collective.utos.org-access_log common