ServerName wiki.example.com
ServerAdmin webmaster@example.com
DocumentRoot /usr/share/moin/htdocs
Include /etc/apache2/conf.d/local-ssl.conf
#
# Options +ExecCGI
#
# Use mod_python as handler
SetHandler python-program
# set the path to the MoinMoin package and to the wikiconfig.py
PythonPath "['/etc/moin']+sys.path"
# choose the ModPy Request class as handler
PythonHandler MoinMoin.request::RequestModPy.run
# PythonOption Location /moin
# Use default themes
Alias /wiki/ /usr/share/moin/htdocs/
AcceptPathInfo On
RewriteEngine On
RewriteLogLevel 1
RewriteRule ^/moin(/(.*))? /$2 [last,R]
RewriteRule ^/wiki/ - [last]
RewriteRule ^/robots.txt - [last]
RewriteRule ^/favicon.ico - [last]
# RewriteRule ^/?(.*) /usr/share/moin/server/moin.cgi/$1 [last,type=application/x-httpd-cgi]
# RewriteRule ^/?(.*) /var/local/moin/server/moinmodpy.py$1 [last,type=application/x-python-code]
RewriteRule ^/?(.*) /usr/share/moin/server/moinmodpy.py/$1 [last,type=application/x-python-code]
# RewriteRule ^/?(.*) /var/local/moin/server/moinmodpy.py$1 [last]
# RewriteRule ^/?(.*) moin/$1 [last,type=application/x-python-code]
Include /etc/apache2/conf.d/local-log-vhosts.conf
CustomLog "| /usr/sbin/vlogger -s access.log -u admin -g admin -t '%Y.%m.%d' /home/webmaster/weblogs" combined_vlogger
ErrorLog "| /usr/sbin/vlogger -s error.log -u admin -g admin -t '%Y.%m.%d' -e /home/webmaster/weblogs/ERRORS"
ServerName www.wiki.example.com:443
ServerAlias wiki:443
ServerAlias *.wiki:443
ServerAdmin webmaster@example.com
Include /etc/apache2/conf.d/local-ssl.conf
RewriteEngine On
# RewriteRule / https://wiki.example.com/ [R]
RewriteRule /(.*)? https://wiki.example.com/$1 [R]
TransferLog /dev/null
ServerName wiki.example.com
ServerAlias *.wiki.example.com
ServerName wiki
ServerAlias *.wiki
ServerAdmin webmaster@example.com
RewriteEngine On
# RewriteRule / https://wiki.example.com/ [R]
RewriteRule /(.*)? https://wiki.example.com/$1 [R]
TransferLog /dev/null