Subject: Re: gitweb: false base href sent when integrated via reverse proxy and path_info is active

From: Daniel Reichelt <[email-masked]>
Date: Sun, 28 Nov 2010 22:25:53 +0100

> The default name of gitweb config file is gitweb_config.perl, not
> gitweb.conf.  Are you sure you are picking correct config file?

Suppose this is Debian-specific:
************
our ($GITWEB_CONFIG, $GITWEB_CONFIG_SYSTEM);
sub evaluate_gitweb_config {
        our $GITWEB_CONFIG = $ENV{'GITWEB_CONFIG'} || "gitweb_config.perl";
        our $GITWEB_CONFIG_SYSTEM = $ENV{'GITWEB_CONFIG_SYSTEM'} ||
"/etc/gitweb.conf";
        # die if there are errors parsing config file
        if (-e $GITWEB_CONFIG) {
                do $GITWEB_CONFIG;
                die $@ if $@;
        } elsif (-e $GITWEB_CONFIG_SYSTEM) {
                do $GITWEB_CONFIG_SYSTEM;
                die $@ if $@;
        }
}
************

> Try adding
>
>   our $site_name = "foo";
>
> to check if you are picking correct config file.

Yap, $site_name shows up in my browser's title.