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
# Example nginx + git HTTP Smart mode (git-http-backend) + HTTP Authentication + HTTPS redirect | |
# Forked from jeroen@massar.ch - http://jeroen.massar.ch | |
# Preparation: you need to install and configure fcgiwrap and set it to listen at fcgiwrap.socket. | |
# An example tutorial: https://www.howtoforge.com/serving-cgi-scripts-with-nginx-on-centos-6.0-p2 | |
# A useful hint: add -f as a parameter to fcgiwrap to redirect the cgi errors to your nginx error log. | |
server { | |
listen 80; | |
server_name git.example.com; | |