ich versuche bei funktionierender git-Konfiguration noch gitweb zum laufen zu bekommen. aktiviere ich gitweb, funktioniert git nicht mehr. ich habe aus gitweb im alias extra webgit gemacht, damit sie sich (so war die Hoffnung) nicht in die Quere kommen (/git und /gitweb)
Code: Alles auswählen
ls -l /etc/lighttpd/conf-available/1?-git*.conf
-rw-r--r-- 1 root root 700 Nov 8 20:50 /etc/lighttpd/conf-available/12-gitweb.conf
-rw-r--r-- 1 root root 678 Nov 1 17:04 /etc/lighttpd/conf-available/13-git.conf
cat /etc/lighttpd/conf-available/13-git.conf
#https://git-scm.com/docs/git-http-backend
server.modules += (
"mod_cgi",
# "mod_alias",
# "mod_auth",
"mod_setenv")
alias.url += ( "/git" => "/usr/lib/git-core/git-http-backend" )
$HTTP["url"] =~ "^/git" {
cgi.assign = ("" => "")
setenv.add-environment = (
"GIT_PROJECT_ROOT" => "/mnt/vcs/git",
"GIT_HTTP_EXPORT_ALL" => "1"
)
}
#auth read+write
$HTTP["url"] =~ "^/git/private" {
include "git-auth.conf"
}
cat /etc/lighttpd/conf-available/12-gitweb.conf
server.modules += ( "mod_alias", "mod_cgi", "mod_redirect", "mod_setenv" )
url.redirect += ( "^/webgit$" => "/webgit/" )
alias.url += ( "/webgit/" => "/usr/share/gitweb/" )
$HTTP["url"] =~ "^/webgit/" {
setenv.add-environment = (
"GITWEB_CONFIG" => "/etc/gitweb.conf",
"PATH" => env.PATH
)
# cgi.assign = ( ".cgi" => "" )
server.indexfiles = ( "gitweb.cgi" )
}
#fastcgi.debug = 1
seht ihr vielleicht meinen Fehler?
beim Zugriff via git habe ich das in der log (entprechend aktiviert):
Code: Alles auswählen
2018-11-09 07:38:08: (response.c.422) -- splitting Request-URI
2018-11-09 07:38:08: (response.c.423) Request-URI : /git/web_intranet/info/refs?service=git-receive-pack
2018-11-09 07:38:08: (response.c.424) URI-scheme : http
2018-11-09 07:38:08: (response.c.425) URI-authority : localhost
2018-11-09 07:38:08: (response.c.426) URI-path (raw) : /git/web_intranet/info/refs
2018-11-09 07:38:08: (response.c.427) URI-path (clean): /git/web_intranet/info/refs
2018-11-09 07:38:08: (response.c.428) URI-query : service=git-receive-pack
2018-11-09 07:38:08: (mod_access.c.156) -- mod_access_uri_handler called
2018-11-09 07:38:08: (response.c.573) -- before doc_root
2018-11-09 07:38:08: (response.c.574) Doc-Root : /var/www
2018-11-09 07:38:08: (response.c.575) Rel-Path : /git/web_intranet/info/refs
2018-11-09 07:38:08: (response.c.576) Path :
2018-11-09 07:38:08: (response.c.628) -- after doc_root
2018-11-09 07:38:08: (response.c.629) Doc-Root : /var/www
2018-11-09 07:38:08: (response.c.630) Rel-Path : /git/web_intranet/info/refs
2018-11-09 07:38:08: (response.c.631) Path : /var/www/git/web_intranet/info/refs
2018-11-09 07:38:08: (response.c.655) -- logical -> physical
2018-11-09 07:38:08: (response.c.656) Doc-Root : /var/www
2018-11-09 07:38:08: (response.c.657) Basedir : /usr/lib/git-core/git-http-backend
2018-11-09 07:38:08: (response.c.658) Rel-Path : /git/web_intranet/info/refs
2018-11-09 07:38:08: (response.c.659) Path : /usr/lib/git-core/git-http-backend/web_intranet/info/refs
2018-11-09 07:38:08: (response.c.671) -- handling physical path
2018-11-09 07:38:08: (response.c.672) Path : /usr/lib/git-core/git-http-backend/web_intranet/info/refs
2018-11-09 07:38:08: (response.c.679) -- handling subrequest
2018-11-09 07:38:08: (response.c.680) Path : /usr/lib/git-core/git-http-backend
2018-11-09 07:38:08: (response.c.681) URI : /git
2018-11-09 07:38:08: (response.c.682) Pathinfo : /web_intranet/info/refs
2018-11-09 07:38:08: (mod_access.c.156) -- mod_access_uri_handler called
2018-11-09 07:38:08: (mod_compress.c.854) -- handling file as static file
Code: Alles auswählen
2018-11-09 07:40:00: (response.c.422) -- splitting Request-URI
2018-11-09 07:40:00: (response.c.423) Request-URI : /git/web_intranet/info/refs?service=git-receive-pack
2018-11-09 07:40:00: (response.c.424) URI-scheme : http
2018-11-09 07:40:00: (response.c.425) URI-authority : localhost
2018-11-09 07:40:00: (response.c.426) URI-path (raw) : /git/web_intranet/info/refs
2018-11-09 07:40:00: (response.c.427) URI-path (clean): /git/web_intranet/info/refs
2018-11-09 07:40:00: (response.c.428) URI-query : service=git-receive-pack
2018-11-09 07:40:00: (mod_access.c.156) -- mod_access_uri_handler called
2018-11-09 07:40:00: (response.c.573) -- before doc_root
2018-11-09 07:40:00: (response.c.574) Doc-Root : /var/www
2018-11-09 07:40:00: (response.c.575) Rel-Path : /git/web_intranet/info/refs
2018-11-09 07:40:00: (response.c.576) Path :
2018-11-09 07:40:00: (response.c.628) -- after doc_root
2018-11-09 07:40:00: (response.c.629) Doc-Root : /var/www
2018-11-09 07:40:00: (response.c.630) Rel-Path : /git/web_intranet/info/refs
2018-11-09 07:40:00: (response.c.631) Path : /var/www/git/web_intranet/info/refs
2018-11-09 07:40:00: (response.c.655) -- logical -> physical
2018-11-09 07:40:00: (response.c.656) Doc-Root : /var/www
2018-11-09 07:40:00: (response.c.657) Basedir : /usr/lib/git-core/git-http-backend
2018-11-09 07:40:00: (response.c.658) Rel-Path : /git/web_intranet/info/refs
2018-11-09 07:40:00: (response.c.659) Path : /usr/lib/git-core/git-http-backend/web_intranet/info/refs
2018-11-09 07:40:00: (response.c.671) -- handling physical path
2018-11-09 07:40:00: (response.c.672) Path : /usr/lib/git-core/git-http-backend/web_intranet/info/refs
2018-11-09 07:40:00: (response.c.679) -- handling subrequest
2018-11-09 07:40:00: (response.c.680) Path : /usr/lib/git-core/git-http-backend
2018-11-09 07:40:00: (response.c.681) URI : /git
2018-11-09 07:40:00: (response.c.682) Pathinfo : /web_intranet/info/refs
2018-11-09 07:40:00: (mod_access.c.156) -- mod_access_uri_handler called
2018-11-09 07:40:00: (mod_compress.c.854) -- handling file as static file
nur in jounalcontrol sehe ich warnings, weil ich module doppelt geladen habe:
Code: Alles auswählen
Nov 09 07:42:28 stretch-web lighttpd[24033]: 2018-11-09 07:42:28: (plugin.c.190) Cannot load plugin mod_alias more than once, please fix your config (lighttpd may not accept such configs in future rel
Nov 09 07:42:28 stretch-web lighttpd[24033]: 2018-11-09 07:42:28: (plugin.c.190) Cannot load plugin mod_redirect more than once, please fix your config (lighttpd may not accept such configs in future
Nov 09 07:42:28 stretch-web lighttpd[24033]: 2018-11-09 07:42:28: (plugin.c.190) Cannot load plugin mod_cgi more than once, please fix your config (lighttpd may not accept such configs in future relea
Nov 09 07:42:28 stretch-web lighttpd[24033]: 2018-11-09 07:42:28: (plugin.c.190) Cannot load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in future re
Nov 09 07:42:28 stretch-web systemd[1]: Started Lighttpd Daemon.
-- Subject: Unit lighttpd.service has finished start-up