Add redirect for owncloud to web host.

This commit is contained in:
Markus 2016-04-08 07:43:23 +02:00
parent 838a98f7e3
commit 63b1ecd671

View File

@ -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;
}