Skip to content

Instantly share code, notes, and snippets.

@kakwa
Created April 29, 2015 12:06
Show Gist options
  • Save kakwa/c8389ba13550c8cacd39 to your computer and use it in GitHub Desktop.
Save kakwa/c8389ba13550c8cacd39 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName git.example.fr
DocumentRoot /var/www/git/
<Directory "/var/www/git/repo/">
Allow from All
Options +ExecCGI
AllowOverride All
</Directory>
Alias /css /usr/local/share/git-create/css/
<Directory "/">
Allow from All
AllowOverride All
AuthName "restrict posting"
AuthType Basic
AuthUserFile /var/www/trac/conf/users.db
require valid-user
</Directory>
SetEnv GITDIR /var/www/git/repo/
SetEnv GITCMD /usr/bin/git
SetEnv GITALIAS git
SetEnv WITHTRAC true
SetEnv TRACDIR /var/www/trac
SetEnv TRACCMD /usr/bin/trac-admin
SetEnv GIT_HTTP_EXPORT_ALL
SetEnv GIT_PROJECT_ROOT /var/www/git/repo/
ScriptAlias /git /usr/lib/git-core/git-http-backend
ScriptAlias / /usr/local/libexec/git-create/git-create.cgi
ErrorLog ${APACHE_LOG_DIR}/error_git.log
ScriptLog ${APACHE_LOG_DIR}/cgierror_git.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access_git.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment