blob: 6fba40b3302fb3115ab4c38ac5353af76eeb5d89 (
plain)
- <VirtualHost *:443>
- ServerName wiki.example.com
- ServerAdmin webmaster@example.com
- DocumentRoot /usr/share/moin/htdocs
- Include conf-available/local-ssl.conf
- <Location />
- SetHandler uwsgi-handler
- uWSGISocket /run/uwsgi/app/local-moin/socket
- </Location>
- ErrorLog ${APACHE_LOG_DIR}/wiki.example.com-error.log
- CustomLog ${APACHE_LOG_DIR}/wiki.example.com-access.log combined
- </VirtualHost>
- <VirtualHost *:443>
- ServerName www.wiki.example.com:443
- ServerName wiki:443
- ServerName *.wiki:443
- Include conf-available/local-ssl.conf
- RewriteEngine On
- RewriteRule / https://wiki.example.com/ [R]
- # RewriteRule /(.*)? https://wiki.example.com/$1 [R]
- CustomLog ${APACHE_LOG_DIR}/redirect.log vhost_combined
- </VirtualHost>
- <VirtualHost *:80>
- ServerName wiki.example.com
- ServerAlias *.wiki.example.com
- ServerAlias wiki
- ServerAlias *.wiki
- RewriteEngine On
- RewriteRule / https://wiki.example.com/ [R]
- # RewriteRule /(.*)? https://wiki.example.com/$1 [R]
- CustomLog ${APACHE_LOG_DIR}/redirect.log vhost_combined
- </VirtualHost>
|