# # DOKUWIKI CONFIG START # # # This stable dokuwiki is in / # # Block access to data, conf etc... folders location ~ /(data|conf|bin|inc)/ { deny all; } location / { index index.php; try_files $uri $uri/ @stabledoku; } location @stabledoku { 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 last; } # # DOKUWIKI CONFIG END #