Skip to content

Instantly share code, notes, and snippets.

@gerardorochin
Last active February 8, 2018 05:01
Show Gist options
  • Save gerardorochin/4991847 to your computer and use it in GitHub Desktop.
Save gerardorochin/4991847 to your computer and use it in GitHub Desktop.
FreeBSD gitweb.cgi config for nginx
#Git Web
location /git {
alias /usr/local/www/gitweb/;
index gitweb.cgi;
auth_basic "Git SCM";
auth_basic_user_file htpasswd;
}
location ~ ^/git/gitweb.cgi {
include fastcgi_params;
fastcgi_param SCRIPT_NAME gitweb.cgi;
fastcgi_param SCRIPT_FILENAME /usr/local/www/gitweb/gitweb.cgi;
fastcgi_pass unix:/var/run/fcgiwrap/fcgiwrap.sock;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment