Created
April 26, 2011 01:56
-
-
Save poppen/941667 to your computer and use it in GitHub Desktop.
nginx.conf for Hiki with fcgiwrap
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
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