Skip to content

Instantly share code, notes, and snippets.

@poppen
Created April 26, 2011 01:56
Show Gist options
  • Save poppen/941667 to your computer and use it in GitHub Desktop.
Save poppen/941667 to your computer and use it in GitHub Desktop.
nginx.conf for Hiki with fcgiwrap
upstream fcgiwrap {
server 127.0.0.1:8000;
}
location ~ /wiki/(.*\.cgi) {
root /var/www/wiki;
fastcgi_index hiki.cgi;
fastcgi_pass fcgiwrap;
fastcgi_param SCRIPT_FILENAME /var/www/wiki/$1;
include fastcgi_params;
}
location /wiki/ {
alias /var/www/wiki/;
index hiki.cgi;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment