[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Control de acceso a proyectos sobre gitweb con .htaccess



Tengo la típica configuración de gitweb sobre Apache.

ScriptAlias /gitweb /var/www/gitweb/

<Directory /var/www/gitweb/gitweb.cgi>
	AllowOverride All
	Allow from all
	Order allow,deny
	Options ExecCGI
	<Files gitweb.cgi>
		SetHandler cgi-script
	</Files>
</Directory>

DirectoryIndex gitweb.cgi
SetEnv  GITWEB_CONFIG  /etc/gitweb.conf

Pero gitweb trabaja con encoded url, y los .htaccess bajo cada repositorio git no son tenidos en cuenta.

¿Se puede controlar acceso a cada repositorio publicado por gitweb en base a los .htaccess?

El .htaccess seria del tipo

AuthType Basic
AuthName "Password Required"
AuthUserFile /mnt/git/templates/users
AuthGroupFile /mnt/git/templates/groups


Reply to: