Browse Source

fix parent template in roles/dokuwiki/templates/dokuwiki.conf

python3
Andrea Cimbalo 6 years ago
parent
commit
414d5496bd
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      roles/dokuwiki/templates/dokuwiki.conf

+ 4
- 4
roles/dokuwiki/templates/dokuwiki.conf View File

@ -1,19 +1,19 @@
{% extends "proxy.conf.nginx.j2" %}
{% extends "roles/nginx/templates/service.conf" %}
{% block proxy_conf %} {% block proxy_conf %}
root /usr/share/dokuwiki; root /usr/share/dokuwiki;
index doku.php; index doku.php;
location ~ /(data/|conf/|bin/|inc/|install.php) { deny all; } location ~ /(data/|conf/|bin/|inc/|install.php) { deny all; }
location / { try_files $uri $uri/ @dokuwiki; } location / { try_files $uri $uri/ @dokuwiki; }
location @dokuwiki { location @dokuwiki {
rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last; rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last; rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last;
rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last; rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last;
rewrite ^/(.*) /doku.php?id=$1&$args last; rewrite ^/(.*) /doku.php?id=$1&$args last;
} }
location ~ \.php$ { location ~ \.php$ {
try_files $uri $uri/ /doku.php; try_files $uri $uri/ /doku.php;
include fastcgi_params; include fastcgi_params;


Loading…
Cancel
Save