diff options
author | Jonas <dr@jones.dk> | 2013-11-15 22:47:23 +0100 |
---|---|---|
committer | Jonas <dr@jones.dk> | 2013-11-15 22:47:23 +0100 |
commit | 765a08104a3f9085f8c9b8f40dad082c8146b76b (patch) | |
tree | 4f2b56e1a4f3495bfb818e9a20bb6d00c1068411 /moin/apache2 | |
parent | 4c7c7b0137c4e443eed29e75f9d6267a35c90488 (diff) |
Add uWSGI-based example MoinMoin setup, replacing earlier Apache2-specific setup.
Diffstat (limited to 'moin/apache2')
-rw-r--r-- | moin/apache2/sites-available/wiki.secure-example.com | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/moin/apache2/sites-available/wiki.secure-example.com b/moin/apache2/sites-available/wiki.secure-example.com new file mode 100644 index 0000000..5ccca1b --- /dev/null +++ b/moin/apache2/sites-available/wiki.secure-example.com @@ -0,0 +1,43 @@ +<VirtualHost *:443> + ServerName wiki.example.com + ServerAdmin webmaster@example.com + DocumentRoot /usr/share/moin/htdocs + + Include conf.d/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.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 +</VirtualHost> +<VirtualHost *:80> + ServerName wiki.example.com + ServerAlias *.wiki.example.com + ServerAlias wiki + ServerAlias *.wiki + + 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 +</VirtualHost> |