Alban Browaeys wrote:
> I will do a patch as soon as we agreed on the fix.
Excellent.
> Le 07/03/2010 03:27, Jonathan Nieder a écrit :
>> I suspect something as simple as
>>
>> Alias / /usr/share/gitweb
>>
>> might do the trick in README.Debian, but I have not tried it, so I
>> would be happy to see someone who needs this to work investigating.
>
> I do not understand . You tell that :
>
> Alias / /usr/share/gitweb
>
> should do the trick. But the current situation (broken ) is :
>
> Alias /gitweb.css /usr/share/gitweb/gitweb.css
> Alias /git-favicon.png /usr/share/gitweb/git-favicon.png
> Alias /git-logo.png /usr/share/gitweb/git-logo.png
[...]
> there is an index.cgi in this directory that would become readily
> available from the net while it
> was not beforehand.
My mistake; I left out a step. Since I do not have virtual hosts set
up, I tried this:
1. changed “Alias /gitweb /usr/share/gitweb”
to “Alias / /usr/share/gitweb/” in /etc/apache2/conf.d/gitweb
2. changed some settings in /etc/gitweb.conf:
$stylesheet = "gitweb.css";
$logo = "git-logo.png";
$favicon = "git-favicon.png";
Then I visited http://localhost/ in my browser, and it worked. I
suspect that with the above change to gitweb.conf, the setup suggested
in current README.Debian will work, too.
Thoughts:
* This gitweb.conf change seems good. gitweb automatically
generates an appropriate <base href="[whatever]"> tag, so relative
links should make this easier to configure.
* Using an “Alias / /usr/share/gitweb/” would mean that once gitweb
includes a gitweb.js (which should be soon), it would be automatically
aliased as well. This can be considered a good thing or a bad
thing; I’ll let you decide.
Thanks for your help, and sorry about the broken gitweb,
Jonathan
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]