Advertisement
Guest User

Untitled

a guest
Sep 21st, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.82 KB | None | 0 0
  1. location / {
  2.             index doku.php;
  3.             try_files $uri $uri/ @dokuwiki;
  4.                 }
  5.  
  6. location @dokuwiki {
  7.                 rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
  8.                 rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last;
  9.                 rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last;
  10.                 rewrite ^/tag/(.*) /doku.php?id=tag:$1&do=showtag&tag=tag:$1 last;
  11.                 rewrite ^/(.*) /doku.php?id=$1 last;
  12.                 }
  13.  
  14. location ~ \.php$ {
  15.                 fastcgi_pass unix:/var/run/php5-fpm.sock;
  16.                 fastcgi_param  HTTPS on;
  17.                 fastcgi_pass_header X-Accel-Redirect;
  18.                 include fastcgi_params;
  19.                 }
  20.  
  21. location ~ /(data|conf|bin|inc)/ {
  22.                 deny all;
  23.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement