diff --git a/data/nginx/files/extras/htz.ex42-1048908/wiki.franzi.business b/data/nginx/files/extras/htz.ex42-1048908/wiki.franzi.business new file mode 100644 index 0000000..d57d264 --- /dev/null +++ b/data/nginx/files/extras/htz.ex42-1048908/wiki.franzi.business @@ -0,0 +1,12 @@ + location ~ /(data|conf|bin|inc|vendor)/ { + deny all; + } + + location / { try_files $uri $uri/ @dokuwiki; } + + location @dokuwiki { + rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last; + rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last; + rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last; + rewrite ^/(.*) /doku.php?id=$1&$args last; + } diff --git a/nodes/htz/ex42-1048908.py b/nodes/htz/ex42-1048908.py index e9fa859..dca279b 100644 --- a/nodes/htz/ex42-1048908.py +++ b/nodes/htz/ex42-1048908.py @@ -215,8 +215,13 @@ nodes['htz.ex42-1048908'] = { 'php': True, }, 'wiki.franzi.business': { - 'index': 'index.php', + 'index': 'doku.php', + 'extras': True, 'php': True, + 'webroot_config': { + 'owner': 'www-data', + 'group': 'www-data', + }, }, }, 'worker_processes': 4,