아파치(apache2.4.x)를 오랜만에 건드리는데 왜케 많이 변한거지 --;

아래는 gitweb과 연동하는 과정에서 perl 설정을 추가한 부분.

Alias /gitweb /usr/share/testWeb

<IfModule mod_perl.c>

<Directory /usr/share/testWeb>

   Options +ExecCGI

   AddHandler perl-script .cgi .pl

   PerlResponseHandler ModPerl::Registry

   PerlOptions +ParseHeaders

   AllowOverride None

    Require all granted

    AuthType Basic

    AuthName "Git Access"

    Require valid-user

    AuthUserFile /etc/apache2/gitweb-htpasswd

    SetEnv GITWEB_CONFIG /etc/gitweb.conf



추가로 gitweb.conf 파일 내용도 업데이트.

our $projectroot = "/home/git/repositories/";

# directory to use for temp files

our $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.

our $projects_list = "/home/git/projects.list";

# 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 = ();

$feature{'blame'}{'default'} = [1];


+ Recent posts