My final target is actually https and likely using mod_authz_ldap but I am
doing baby steps. This is an RHEL 6.5 box
git is working - so is git-daemon
gitweb is working
using apache (at least for now, may ultimately switch to nginx but if I get
it working in Apache, switchover won't be hard)
Trying to configure http and finally got it working by creating a symlink
ln -s /var/git /var/www/html/var
which I needed to do because the errors in apache logs kept pointing to
/var/www/html/var/git didn't exist - so it does now.
Configuration that is working looks like this but it is clumsy - what am I
doing wrong?
<Virtualhost *:80>
ServerName git.stt.local
ServerAlias git
SetEnv GIT_PROJECT_ROOT /var/git
SetEnv GIT_HTTP_EXPORT_ALL
ScriptAlias /git/ /usr/libexec/git-core/git-http-backend/
Alias /git /var/git
<Directory "/usr/lib/git-core*">
Options ExecCGI Indexes
Order allow,deny
Allow from all
Require all granted
</Directory>
<LocationMatch "^/git/.*/git-receive-pack$">
AuthType Basic
AuthName "Git Access"
AuthUserFile /var/git/.htpasswd
Require valid-user
</LocationMatch>
</Virtualhost>
--
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.