Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-29-2016, 10:31 AM   #1
Registered: Feb 2014
Location: /home/snake
Distribution: Archlinux and Debian
Posts: 56

Rep: Reputation: Disabled
gitweb dont show css javascript etc...

Hi everybody, im configuring a gitweb in my server, it works fine, but i dont get that the page show the css (style).

I have add the next to my 000-default.conf in apache2 (debian 8):

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        ScriptAlias /git "/var/www/gitweb/"
        <Directory "/var/www/gitweb">
   DirectoryIndex gitweb.cgi
   Allow from all
   AllowOverride all
   Order allow,deny
   Options ExecCGI
   <Files gitweb.cgi>
   SetHandler cgi-script
   SetEnv  GITWEB_CONFIG  /etc/conf.d/gitweb.conf
And my /etc/gitweb.conf is:

# path to git projects (<project>.git)
$projectroot = "/home/git/";

# directory to use for temp files
$git_temp = "/tmp";

# target of the home link on top of all pages
#$home_link = $my_uri || "/";

# html text to include at home page
$home_text = "indextext.html";

# file with project list; by default, simply scan the projectroot dir.
$projects_list = $projectroot;

# stylesheet to use
@stylesheets = ("static/gitweb.css");

# javascript code for gitweb
$javascript = "static/gitweb.js";

# logo to use
$logo = "static/git-logo.png";

# the 'favicon'
$favicon = "static/git-favicon.png";

# git-diff-tree(1) options to use for generated patches
#@diff_opts = ("-M");
@diff_opts = ();
Thanks in advance.
Old 03-01-2016, 06:52 AM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Something looks a bit odd about your configuration (which is a bit hard to read due to the inconsistent indentation) of your Apache config. You have:

ScriptAlias /git "/var/www/gitweb/"
But it seems to me that there should be things other than CGI scripts in /var/www/gitweb. The configuration given on HowTo Forge looks a little bit different.

Also, on Debian 8, the Allow/Deny syntax has changed as Apache 2.4 is in use instead of 2.2. You have the old style syntax in your configuration. I doubt it's your main problem, but it may be causing some side effects.

I've found that the best thing to do is try to load a css file manually in your browser and then check the Apache error_log to see the exact problem. This should give you some clues as to what needs to be fixed.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Are HTML, JavaScript and CSS all related? punchy71 Programming 5 05-05-2015 12:21 AM
[HTML/CSS/Javascript] Moving background image dickgregory Programming 2 06-10-2011 06:57 PM
The best HTML/CSS/JavaScript book? christianunix Linux - Newbie 1 04-03-2009 10:18 PM
eclipse 3.4 html css javascript editor plugin manuleka Linux - Software 0 03-30-2009 02:16 PM
Javascript/CSS mouseout question pnellesen Programming 2 02-26-2006 06:22 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration