Skip to content

Instantly share code, notes, and snippets.

@donpdonp
Created August 23, 2011 19:04
Show Gist options
  • Save donpdonp/1166154 to your computer and use it in GitHub Desktop.
Save donpdonp/1166154 to your computer and use it in GitHub Desktop.
#PHP
server {
location / {
index index.php index.html;
rewrite ^/wiki/_media/(.*) /wiki/lib/exe/fetch.php?media=$1 last;
rewrite ^/wiki/_detail/(.*) /wiki/lib/exe/detail.php?media=$1 last;
rewrite ^/wiki/_export/([^/]+)/(.*) /wiki/doku.php?do=export_$1&id=$2 last;
rewrite ^/wiki/lib/tpl/(.*) /wiki/lib/tpl/$1 break;
rewrite ^/wiki(/(.*))? /wiki/doku.php?id=$1 last;
}
location ~ \.php$ {
fastcgi_pass dp-php;
include fastcgi.conf;
}
}
upstream dp-php {
server 127.0.0.1:9000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment