Skip to content

Instantly share code, notes, and snippets.

@specialkevin
Created February 9, 2012 18:49
Show Gist options
  • Save specialkevin/1781972 to your computer and use it in GitHub Desktop.
Save specialkevin/1781972 to your computer and use it in GitHub Desktop.
nginx
server {
listen 80;
server_name localhost;
location ~ /git(/.*) {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
fastcgi_param DOCUMENT_ROOT /srv/git;
fastcgi_param GIT_PROJECT_ROOT /srv/git;
fastcgi_param PATH_INFO $1;
fastcgi_pass 127.0.0.1:9001; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment