blob: 04cf7e040040aa24ff516e23f0a5766345e32ead (
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]
- 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"
- </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
- RewriteEngine On
- # RewriteRule / https://wiki.example.com/ [R]
- RewriteRule /(.*)? https://wiki.example.com/$1 [R]
- TransferLog /dev/null
- </VirtualHost>
- <VirtualHost *:80>
- 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
- </VirtualHost>
|