Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- location / {
- index doku.php;
- 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 ^/tag/(.*) /doku.php?id=tag:$1&do=showtag&tag=tag:$1 last;
- rewrite ^/(.*) /doku.php?id=$1 last;
- }
- location ~ \.php$ {
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_param HTTPS on;
- fastcgi_pass_header X-Accel-Redirect;
- include fastcgi_params;
- }
- location ~ /(data|conf|bin|inc)/ {
- deny all;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement