ServerName wiki.example.com ServerAdmin webmaster@example.com DocumentRoot /usr/share/moin/htdocs Include 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] ErrorLog ${APACHE_LOG_DIR}/wiki.example.com-error.log CustomLog ${APACHE_LOG_DIR}/wiki.example.com-access.log combined ServerName www.wiki.example.com:443 ServerAlias wiki:443 ServerAlias *.wiki:443 ServerAdmin webmaster@example.com Include conf.d/local-ssl.conf Include conf.d/local-log-origin.conf RewriteEngine On RewriteRule / https://wiki.example.com/ [R] # RewriteRule /(.*)? https://wiki.example.com/$1 [R] CustomLog ${APACHE_LOG_DIR}/redirect.log origin ServerName wiki.example.com ServerAlias *.wiki.example.com ServerName wiki ServerAlias *.wiki ServerAdmin webmaster@example.com Include conf.d/local-log-origin.conf RewriteEngine On RewriteRule / https://wiki.example.com/ [R] # RewriteRule /(.*)? https://wiki.example.com/$1 [R] CustomLog ${APACHE_LOG_DIR}/redirect.log origin