blob: 8ca2919df03005b291720b4c379b84c335cddf5e (
plain)
- <VirtualHost *:443>
- ServerName wiki.example.com
- ServerAdmin webmaster@example.com
- DocumentRoot /usr/share/moin/htdocs
- Include /etc/apache2/conf.d/local-ssl.conf
- # <Location />
- # Options +ExecCGI
- # </Location>
- <Directory /usr/share/moin/server/>
- # 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
- </Directory>
- # 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 /var/log/apache2/wiki.example.com-error.log
- CustomLog /var/log/apache2/wiki.example.com-access.log combined
- </VirtualHost>
- <VirtualHost *:443>
- ServerName www.wiki.example.com:443
- ServerAlias wiki:443
- ServerAlias *.wiki:443
- ServerAdmin webmaster@example.com
- Include /etc/apache2/conf.d/local-ssl.conf
- Include /etc/apache2/conf.d/local-log-origin.conf
- RewriteEngine On
- # RewriteRule / https://wiki.example.com/ [R]
- RewriteRule /(.*)? https://wiki.example.com/$1 [R]
- CustomLog /var/log/apache2/redirect.log origin
- </VirtualHost>
- <VirtualHost *:80>
- ServerName wiki.example.com
- ServerAlias *.wiki.example.com
- ServerName wiki
- ServerAlias *.wiki
- ServerAdmin webmaster@example.com
- Include /etc/apache2/conf.d/local-log-origin.conf
- RewriteEngine On
- # RewriteRule / https://wiki.example.com/ [R]
- RewriteRule /(.*)? https://wiki.example.com/$1 [R]
- CustomLog /var/log/apache2/redirect.log origin
- </VirtualHost>
|