diff --git a/roles/web/files/vhost b/roles/web/files/vhost index 6d25533..b971da0 100644 --- a/roles/web/files/vhost +++ b/roles/web/files/vhost @@ -4,9 +4,9 @@ server { server_name binary-kitchen.de www.binary-kitchen.de binary-kitchen.com www.binary-kitchen.com binary-kitchen.net www.binary-kitchen.net binary.kitchen www.binary.kitchen; - location /.well-known/acme-challenge/ { + location /.well-known/acme-challenge { default_type "text/plain"; - alias /var/www/acme-challenge/; + alias /var/www/acme-challenge; } location / { @@ -29,6 +29,14 @@ server { index index.php; + location = / { + return 301 https://www.binary-kitchen.de/wiki/; + } + + location /owncloud { + rewrite ^/owncloud(/.*)$ https://oc.binary-kitchen.de$1; + } + location ~ /wiki/(data/|conf/|bin/|inc/|install.php) { deny all; }