티스토리 뷰

GIT

[GITWEB] Resource 문제 해결

ysh0222 2012. 8. 23. 02:56

gitweb 설정 문제

gitweb.css, gitweb.js, git-logo.png 등등을 읽지 못하게 되어서 생긴 문제이다. 


1. 못가져오는 파일들은 /usr/share/gitweb 에 위치함.

2. ln -s /usr/share/gitweb /var/www/gitweb

3. sudo vim /etc/gitweb.conf

4. restart apache


-정상동작하는 conf 파일=

/etc/gitweb.conf

  1 # path to git projects (<project>.git)                                                                              

  2 $projectroot = "/var/cache/git";

  3  

  4 # directory to use for temp files

  5 $git_temp = "/tmp";

  6  

  7 # target of the home link on top of all pages

  8 #$home_link = $my_uri || "/";

  9  

 10 # html text to include at home page

 11 $home_text = "indextext.html";

 12  

 13 # file with project list; by default, simply scan the projectroot dir.

 14 #$projects_list = $projectroot;

 15  

 16 # stylesheet to use

 17 @stylesheets = ("/static/gitweb.css");

 18  

 19 # javascript code for gitweb

 20 #$javascript = "/static/gitweb.js";

 21  

 22 # logo to use

 23 $logo = "/static/git-logo.png";

 24  

 25 # the 'favicon'

 26 $favicon = "/static/git-favicon.png";

 27  

 28 # git-diff-tree(1) options to use for generated patches

 29 #@diff_opts = ("-M");

 30 @diff_opts = ();


공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/06   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
글 보관함