url base for relative paths not working correctly

Bug #1137999 reported by Dark Dragon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gitweb (Ubuntu)
New
Undecided
Unassigned

Bug Description

When I want to use the pretty URLs via Apache ModRewrite, it does not work without a VirtualServer currently.

Although this could be very easily achieved:

In /usr/share/gitweb/gitweb.cgi, add after "our $base_url = $my_url;" the following lines:

        if (defined $ENV{'SCRIPT_NAME'}) {
                $base_url = $ENV{'SCRIPT_NAME'};
        }

Then it does work with ModRewrite within /etc/apache2/conf.d/gitweb.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.