From: Epiphanov Sergei <serpiph@nikiet.ru> To: "Рассылка Sisyphus" <sisyphus@lists.altlinux.org> Subject: [sisyphus] gitweb configuration Date: Tue, 20 Mar 2007 17:44:41 +0300 Message-ID: <200703201744.41709.serpiph@nikiet.ru> (raw) Решил поиграться с 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"; Подскажите, у меня что-то не срослось или что-то напутал? -- С уважением, Епифанов Сергей
reply other threads:[~2007-03-20 14:44 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=200703201744.41709.serpiph@nikiet.ru \ --to=serpiph@nikiet.ru \ --cc=sisyphus@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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