Created
December 27, 2009 21:04
-
-
Save gumayunov/264399 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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