12 lines
409 B
Text
12 lines
409 B
Text
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;
|
|
}
|