Skip to content

Instantly share code, notes, and snippets.

@seveas
Created October 22, 2015 22:15
Show Gist options
  • Save seveas/06c978719e0a6db663f8 to your computer and use it in GitHub Desktop.
Save seveas/06c978719e0a6db663f8 to your computer and use it in GitHub Desktop.
<VirtualHost 10.0.0.1:80>
ServerName git.example.com
DocumentRoot /gitroot
# smart transport
SetEnv GIT_PROJECT_ROOT /gitroot
ScriptAlias /git/ /usr/libexec/git-core/git-http-backend/
<Directory "/usr/libexec/git-core*">
Options Indexes Multiviews
AllowOverride None
</Directory>
ErrorLog logs/git/error_log
CustomLog logs/git/access_log common
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment