commit ff9df8324d2a8dcefad12ff73de68a4db496e3ee Author: Arne Baeumler Date: Sat May 14 20:52:39 2016 +0200 git.br0tkasten.de - apache vhost config diff --git a/git.br0tkasten.de/etc/httpd/conf/vhosts/git.conf b/git.br0tkasten.de/etc/httpd/conf/vhosts/git.conf new file mode 100644 index 0000000..897811a --- /dev/null +++ b/git.br0tkasten.de/etc/httpd/conf/vhosts/git.conf @@ -0,0 +1,33 @@ + + ServerName git.br0tkasten.de:80 + DocumentRoot /var/www/git/htdocs + CustomLog /var/log/httpd/git/access.log combined + ErrorLog /var/log/httpd/git/error.log + + SetEnv GITWEB_CONFIG /var/www/git/conf/gitweb.conf + SetEnv GIT_PROJECT_ROOT /var/www/git/projects + SetEnv GIT_HTTP_EXPORT_ALL + + +## Smart GIT http-backend https://www.kernel.org/pub/software/scm/git/docs/git-http-backend.html + ScriptAlias /projects/ /usr/lib/git-core/git-http-backend/ + + AuthType Basic + AuthName "git repository" + AuthUserFile /var/www/git/conf/htpasswd + Require valid-user + + + +## gitweb config + RewriteEngine On + RewriteRule ^/$ /gitweb.cgi + + Options ExecCGI FollowSymLinks SymLinksIfOwnerMatch + AddHandler cgi-script cgi + AllowOverride All + order allow,deny + Allow from all + + +