-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I still have the problem described in #383065 (but noticed just now):


gitweb.css is (with the latest gitweb-package) located in /var/www, but
calling the .cgi still gives:

==> script.log <==
%% [Fri Oct 06 23:13:48 2006] GET /cgi-bin/gitweb.css HTTP/1.1
%% 404 /usr/lib/cgi-bin/gitweb.css
%error
script not found or unable to stat
==> script.log <==

Copying the .css into /usr/lib/cgi-bin won't do, because apache want's
to execute it when called:

==> script.log <==
%% [Fri Oct 06 23:06:39 2006] GET /cgi-bin/gitweb.css HTTP/1.1
%% 500 /usr/lib/cgi-bin/gitweb.css
%request
==> script.log <==


I was about to edit gitweb.cgi, but editing gitweb.conf (and making
$stylesheet a variable to the user) seems a far better solution to me.
I've attached 2 patches to this mail, one of them should suffice.

Thanks,
Christian.
- --
BOFH excuse #207:

We are currently trying a new concept of using a live mouse.
Unfortunately, one has yet to survive being hooked up to the
computer.....please bear with us.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFJtph+A7rjkF8z0wRAp8pAKDFeuX5kZr1COmn+CerU98O3PLKegCfS6SU
jmwR0Uu8ZsJum/75cdbHGJE=
=5ilV
-----END PGP SIGNATURE-----
--- /usr/lib/cgi-bin/gitweb.cgi.orig	2006-10-06 23:13:18.000000000 +0100
+++ /usr/lib/cgi-bin/gitweb.cgi	2006-10-06 23:26:31.000000000 +0100
@@ -50,7 +50,7 @@ our $site_name = $ENV{'SERVER_NAME'} || 
 our $home_text = "indextext.html";
 
 # URI of default stylesheet
-our $stylesheet = "gitweb.css";
+our $stylesheet = "/gitweb.css";
 
 # source of projects list
 #our $projects_list = $projectroot;

--- /etc/gitweb.conf.orig	2006-10-06 23:25:32.000000000 +0100
+++ /etc/gitweb.conf	2006-10-06 23:24:53.000000000 +0100
@@ -13,3 +13,5 @@
 # file with project list; by default, simply scan the projectroot dir.
 $projects_list = $projectroot;
 
+# stylesheet to use, relative to document-root (even with a leading slash)
+$stylesheet = "/gitweb.css";

Reply via email to