# # DOKUWIKI CONFIG START # # # this test dokuwiki is in /latestdw/ # # Block access to data, conf etc... folders location ~ /latestdw/(data|conf|bin|inc)/ { deny all; } location /latestdw/ { index index.php; try_files $uri $uri/ @latestdw; } location @latestdw { rewrite ^/latestdw/_media/(.*) /latestdw/lib/exe/fetch.php?media=$1 last; rewrite ^/latestdw/_detail/(.*) /latestdw/lib/exe/detail.php?media=$1 last; rewrite ^/latestdw/_export/([^/]+)/(.*) /latestdw/doku.php?do=export_$1&id=$2 last; rewrite ^/latestdw/(.*) /latestdw/doku.php?id=$1 last; } # # DOKUWIKI CONFIG END #