我尝试设置 gitweb,但是当我加载页面时,它变得很奇怪......
编辑:如果人们误解了,它应该是这样的:
这是我的 lighttpd 配置文件的样子:
server.port = 80
server.username = "http"
server.groupname = "http"
server.document-root = "/usr/share/gitweb"
server.errorlog = "/var/log/lighttpd/error.log"
dir-listing.activate = "enable"
index-file.names = ( "gitweb.cgi" )
cgi.assign = (
".cgi" => ""
)
mimetype.assign = (
".html" => "text/html",
".txt" => "text/plain",
".jpg" => "image/jpeg",
".png" => "image/png"
)
server.modules += (
"mod_cgi",
"mod_setenv"
)
setenv.add-environment = (
"GITWEB_CONFIG" => "/etc/conf.d/gitweb.conf"
)
这是 gitweb.conf 的样子:
$git_temp = "/tmp";
# The directories where your projects are. Must not end with a slash.
$projectroot = "/path/to/projects";
# Base URLs for links displayed in the web interface.
our @git_base_url_list = qw(git://localhost http://git@localhost);
(/path/to/projects
只是给你一个想法。)
当我使用git instaweb
时,它似乎很好,尽管它看起来忽略了我正在尝试使用的新 gitweb.css 文件。编辑:这是因为我没有更新缓存。
有任何想法吗?