Last active
February 8, 2018 05:01
-
-
Save gerardorochin/4991847 to your computer and use it in GitHub Desktop.
FreeBSD gitweb.cgi config for nginx
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
#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