【发布时间】:2017-01-09 15:59:18
【问题描述】:
我有一个带有 Centos 7 的 DigitalOcean droplet,但在我的 droplet 上看不到我的存储库。
我有一个用户 git,在相应的主文件夹中我有文件夹“项目”:/home/git/projects
在该文件夹内是一个测试存储库,初始化为:git init --bare
这是我的gitweb.conf
$projectroot = "/home/git/projects";
$git_temp = "/tmp";
$home_link = $my_uri || "/";
$home_text = "indextext.html";
$projects_list = $projectroot;
这里是我的可用站点文件:
server {
listen 80;
server_name git.apselom.com;
access_log /var/log/nginx/git.apselom.com.access_log main;
error_log /var/log/nginx/git.apselom.com.error_log info;
location /gitweb.cgi {
root /var/www/git/;
include fastcgi_params;
gzip off;
fastcgi_param SCRIPT_NAME $uri;
fastcgi_param GITWEB_CONFIG /etc/gitweb.conf;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
location / {
root /var/www/git/;
index gitweb.cgi;
}
}
有了这些,我只得到错误:404 - No projects found。
【问题讨论】:
-
不要将我们链接到图像。相反,请告诉我们您收到 404 错误。