Конфигурационный файл nginx для Dokuwiki

dokuwiki.conf
include common/upstream;
 
server {
  listen 80;
  server_name wiki;
  root /var/www/dokuwiki/www;
 
  index index.php index.html index.htm;
 
  charset utf-8;
 
  location ~ /(data|conf|bin|inc)/ {
    deny all;
    return 404;
  }
 
  location / { try_files $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;
  }
 
  location ~ \.php$ {
    include common/php-fpm;
  }
 
  location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico|bmp|txt)$ {
    try_files $uri @dokuwiki;
    access_log off;
    expires 14d;
    break;
  }
 
  location ~* \.(ico|pdf|flv)$ {
    try_files $uri @dokuwiki;
    access_log off;
    expires 1y;
    break;
  }
 
  location ~ /\.ht {
    deny all;
    return 404;
  }
}
common/php-fpm
fastcgi_pass php-fpm;
include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_TRANSLATED   $document_root$fastcgi_script_name;
set   $path_info    $fastcgi_path_info;
fastcgi_param PATH_INFO   $path_info;
fastcgi_param PHP_VALUE "include_path=.:/usr/share/php:/usr/share/pear";
fastcgi_param PHP_ADMIN_VALUE "open_basedir=/var/www/";
fastcgi_index index.php;
common/upstream
upstream php-fpm
{
  # PHP5-FPM сервер
  server unix:/var/run/php5-fpm.sock;
}