* Gerrit Pape <[EMAIL PROTECTED]> [2007-11-08 15:15]: > On Thu, Nov 08, 2007 at 02:57:24PM +0100, Thomas Bleher wrote: > > I'd like to host multiple copies of gitweb.cgi, since I have both > > public and private repos, which I'd like to make browsable on > > different subdomains, some password-protected, some public. > > > > Upstream makes this easy, you just have to provide your config in > > "gitweb_conf.perl" in the subdir of the CGI. Debian changes this to > > "/etc/gitweb.cgi", making it hard to have multiple different > > configurations. > > > > I propose to first read the file in /etc and then in the dir of the > > CGI. This would allow central configuration with the ability to > > override it locally. > > You can override the location of the config file through the environment > variable GITWEB_CONFIG, see upstream's gitweb/README (I need to install > this in the gitweb package); does this help?
I saw this and could probably use it, but there are two issues here: * Debian deviates from upstream, so instructions like "just symlink gitweb.cgi here and create a config file gitweb_conf.perl ..." and so on do not work on Debian, which is bad. I think Debian and upstream should agree on the config file's location. * To set the environment variable, I would need to either add a wrapper or fiddle with my apache config. Probably the wrapper would be very small (just a one line shell script), but I would first have to test this (are all CGI parameters passed through?, questions like that). Anyway, thank you for the fast answer! Thomas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]