<IfModule !mpm_prefork_module>
<IfDefine !prefork>
LoadModule cgid_module libexec/mod_cgid.so
</IfDefine>
</IfModule>
<IfModule mpm_prefork_module>
<IfDefine prefork>
LoadModule cgi_module libexec/mod_cgi.so
</IfDefine>
</IfModule>
LoadModule env_module libexec/mod_env.so
LoadModule alias_module libexec/mod_alias.so
LoadModule rewrite_module libexec/mod_rewrite.so
SetEnv GIT_PROJECT_ROOT /export/share/git
SetEnv GIT_HTTP_EXPORT_ALL
ScriptAlias /git/ /usr/lib/git-core/git-http-backend/
<Location /git>
# Options +ExecCGI +SymLinksIfOwnerMatch
# SSLRequireSSL
# SSLOptions +StrictRequire
AuthType Basic
AuthName "Git Authentication"
AuthUserFile /var/apache2/2.4/htdocs/.htpasswd
Require valid-user
LogLevel debug
</Location>
Last active
September 6, 2016 00:28
-
-
Save satokaz/002dbee6a2c8a17d1c7733300c0aaf4a to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment