Skip to content

Instantly share code, notes, and snippets.

@gumayunov
Created December 27, 2009 21:04
Show Gist options
  • Save gumayunov/264399 to your computer and use it in GitHub Desktop.
Save gumayunov/264399 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name dokuwiki.valery;
rewrite_log on;
root /www/dokuwiki;
location / {
if (!-f $request_filename) {
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&$2 last;
rewrite ^$ doku.php last;
}
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www/dokuwiki/$fastcgi_script_name;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment