From 414d5496bde533f3c0fd366a4915ecd8f5013ad8 Mon Sep 17 00:00:00 2001 From: Andrea Cimbalo Date: Sun, 23 Sep 2018 19:43:21 +0200 Subject: [PATCH] fix parent template in roles/dokuwiki/templates/dokuwiki.conf --- roles/dokuwiki/templates/dokuwiki.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/dokuwiki/templates/dokuwiki.conf b/roles/dokuwiki/templates/dokuwiki.conf index 584b8ac..d988368 100644 --- a/roles/dokuwiki/templates/dokuwiki.conf +++ b/roles/dokuwiki/templates/dokuwiki.conf @@ -1,19 +1,19 @@ -{% extends "proxy.conf.nginx.j2" %} +{% extends "roles/nginx/templates/service.conf" %} {% block proxy_conf %} root /usr/share/dokuwiki; index doku.php; - + location ~ /(data/|conf/|bin/|inc/|install.php) { 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; } - + location ~ \.php$ { try_files $uri $uri/ /doku.php; include fastcgi_params;