ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] gitweb configuration
@ 2007-03-20 14:44 Epiphanov Sergei
  0 siblings, 0 replies; only message in thread
From: Epiphanov Sergei @ 2007-03-20 14:44 UTC (permalink / raw)
  To: Рассылка Sisyphus

Решил поиграться с gitweb. Поставил пакет, настроил apache2:

<IfModule alias_module>
<IfModule env_module>
<IfModule rewrite_module>
<Location "/git">
    RewriteEngine on
    RewriteRule ^/(.*\.git/(?!/?(info|objects|refs)).*)?
$ /cgi-bin/gitweb.cgi%{REQUEST_URI}  [L,PT]
    SetEnv      GITWEB_CONFIG   /etc/gitweb.conf
</Location>
</IfModule>
</IfModule>
</IfModule>

Сам /var/www/apache2/html/git указывает на каталог, где лежит каталог 
program.git (полученный через git push). Если закомментировать Rewrite..., 
то в каталоги program.git спокойно вижу и могу заходить. Если открываю 
правила Rewrite..., то gitweb.cgi ругается на то, что не находит ничего. 
Внедрение кода в gitweb.cgi показало, что для gitweb.cgi не передаётся 
переменная окружения GITWEB_CONFIG (Кстати, в README для gitweb написано и 
про другие переменные окружения, но в самом файле gitweb.cgi я не нашёл их 
получение). В результате gitweb.cgi не читает конфигурацию, в результате 
смотрит не туда (то есть лезет в /pub/git, а не в мой каталог). 
В /etc/gitweb.cgi написано:

$projectroot="/path/to/repo";

Подскажите, у меня что-то не срослось или что-то напутал?

-- 
С уважением, Епифанов Сергей


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-20 14:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-20 14:44 [sisyphus] gitweb configuration Epiphanov Sergei

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git