You are not logged in.
Pages: 1
Hey!
After an update I can't access my git-repository over https anymore.
Using git, I got "fatal: repository '...' not found"
When I use the browser, I my git repository is available through cgit.
Here is the lighttpd config
#######################################################################
##
## For more examples check:
##
## http://www.lighttpd.net/documentation/configuration.html#conditional-configuration
##
server.modules += ( "mod_setenv" , "mod_redirect" )
server.modules += ( "mod_alias" )
server.modules += ("mod_fastcgi" )
$HTTP["host"] == "myhost" {
var.server_name = "rbs-git-server"
server.name = server_name
# CGIT
var.webapps = "/usr/share/webapps/"
url.redirect += ( "^/$" => "/cgit/" )
$HTTP["url"] =~ "^/cgit" {
server.document-root = webapps
server.indexfiles = ("cgit.cgi")
cgi.assign = ("cgit.cgi" => "")
mimetype.assign = ( ".css" => "text/css" )
}
# GIT
alias.url += ( "/git" => "/usr/lib/git-core/git-http-backend")
$HTTP["url"] =~ "^/git" {
# turn on CGI unconditionally for this URL
cgi.assign = ( "" => "" )
setenv.add-environment = (
"GIT_PROJECT_ROOT" => "/var/git",
"GIT_HTTP_EXPORT_ALL" => ""
)
}
ssl.pemfile = ...
accesslog.filename = log_root + "/" + server_name + "_access.log"
}
Should I provide some other information?
git --version
git version 2.10.2
Thanks a lot.
Last edited by smohr (2016-11-28 22:18:21)
Offline
Im thinking some users, like myself dont use light-httpd, but are very familiar with git, and need to know the command your running to understand what your doing to try to understand what might have even provoked the error in the first place. Can you paste the original command, and the error output in code, on your OP above the config code?
Last edited by wolfdogg (2016-11-28 21:40:06)
Offline
oh, I just run "git clone -v https://[IP]/git/[repository]"
The error message is
Cloning into '[repository]'...
fatal: repository 'https://[IP]/git/[repository]/' not found
And there is no error in lighttpd error log file.
But finally I solved the problem. There was just another vhost config that imports another time:
server.modules += ( "mod_setenv" , "mod_redirect" )
server.modules += ( "mod_alias" )
server.modules += ("mod_fastcgi" )
Removing these lines solves the problem. I don't understand why this causes problems in lighttpd but that is another question.
Offline
Pages: 1