git.br0tkasten.de - apache vhost config
This commit is contained in:
commit
ff9df8324d
33
git.br0tkasten.de/etc/httpd/conf/vhosts/git.conf
Normal file
33
git.br0tkasten.de/etc/httpd/conf/vhosts/git.conf
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
<VirtualHost 37.221.196.144:80>
|
||||||
|
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/
|
||||||
|
<LocationMatch "^/projects/.*/git-receive-pack$">
|
||||||
|
AuthType Basic
|
||||||
|
AuthName "git repository"
|
||||||
|
AuthUserFile /var/www/git/conf/htpasswd
|
||||||
|
Require valid-user
|
||||||
|
</LocationMatch>
|
||||||
|
|
||||||
|
|
||||||
|
## gitweb config
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteRule ^/$ /gitweb.cgi
|
||||||
|
<Location />
|
||||||
|
Options ExecCGI FollowSymLinks SymLinksIfOwnerMatch
|
||||||
|
AddHandler cgi-script cgi
|
||||||
|
AllowOverride All
|
||||||
|
order allow,deny
|
||||||
|
Allow from all
|
||||||
|
</Location>
|
||||||
|
|
||||||
|
</VirtualHost>
|
Loading…
x
Reference in New Issue
Block a user