i am trying to set up gitweb and the http backend. gitweb works so far, but the http backend is giving me headaches. i always get "fatal: repository not found errors, which is quite frustrating as gitweb works perfectly well with the same url. i wasted hours on this, so any help would be really nice!
root@lpgaixmgmtlx01:/etc/ansible/aix>git remote -v origin http://lpgaixmgmtlx01.test.sozvers.at/git/ansible.git (fetch) origin http://lpgaixmgmtlx01.test.sozvers.at/git/ansible.git (push) root@lpgaixmgmtlx01:/etc/ansible/aix>git remote show origin Username for 'http://lpgaixmgmtlx01.test.sozvers.at': tremch Password for 'http://[email protected]': fatal: repository 'http://lpgaixmgmtlx01.test.sozvers.at/git/ansible.git/' not found apache error log [Tue Aug 14 11:22:04.701868 2018] [rewrite:trace3] [pid 18507] mod_rewrite.c (470): [client 172.16.172.154:33378] 172.16.172.154 - tremch [lpgaixmgmtlx01 .test.sozvers.at/sid#1000b91f350][rid#1000bbc6280/initial] [perdir /var/www/git/] add path info postfix: /var/www/git/ansible.git -> /var/www/git/ansible.git/info/refs [Tue Aug 14 11:22:04.701899 2018] [rewrite:trace3] [pid 18507] mod_rewrite.c (470): [client 172.16.172.154:33378] 172.16.172.154 - tremch [lpgaixmgmtlx01 .test.sozvers.at/sid#1000b91f350][rid#1000bbc6280/initial] [perdir /var/www/git/] strip per-dir prefix: /var/www/git/ansible.git/info/refs -> ansible.git/info/refs [Tue Aug 14 11:22:04.701911 2018] [rewrite:trace3] [pid 18507] mod_rewrite.c (470): [client 172.16.172.154:33378] 172.16.172.154 - tremch [lpgaixmgmtlx01 .test.sozvers.at/sid#1000b91f350][rid#1000bbc6280/initial] [perdir /var/www/git/] applying pattern '^.*' to uri 'ansible.git/info/refs' [Tue Aug 14 11:22:04.701957 2018] [rewrite:trace2] [pid 18507] mod_rewrite.c (470): [client 172.16.172.154:33378] 172.16.172.154 - tremch [lpgaixmgmtlx01 .test.sozvers.at/sid#1000b91f350][rid#1000bbc6280/initial] [perdir /var/www/git/] rewrite 'ansible.git/info/refs' -> '/git/gitweb.cgi/ansible.git/info/refs' [Tue Aug 14 11:22:04.701968 2018] [rewrite:trace2] [pid 18507] mod_rewrite.c (470): [client 172.16.172.154:33378] 172.16.172.154 - tremch [lpgaixmgmtlx01 .test.sozvers.at/sid#1000b91f350][rid#1000bbc6280/initial] [perdir /var/www/git/] forcing '/git/gitweb.cgi/ansible.git/info/refs' to get passed through to next API URI-to-filename handler [Tue Aug 14 11:22:04.701977 2018] [rewrite:trace1] [pid 18507] mod_rewrite.c (470): [client 172.16.172.154:33378] 172.16.172.154 - tremch [lpgaixmgmtlx01 .test.sozvers.at/sid#1000b91f350][rid#1000bbc6280/initial] [perdir /var/www/git/] internal redirect with /git/gitweb.cgi/ansible.git/info/refs [INTERNAL REDIRECT] [Tue Aug 14 11:22:04.702126 2018] [rewrite:trace3] [pid 18507] mod_rewrite.c (470): [client 172.16.172.154:33378] 172.16.172.154 - tremch [lpgaixmgmtlx01 .test.sozvers.at/sid#1000b91f350][rid#1000bbca848/initial/redir#1] [perdir /var/www/git/] add path info postfix: /var/www/git/gitweb.cgi -> /var/www/git/gitweb.cgi/ansible.git/info/refs [Tue Aug 14 11:22:04.702135 2018] [rewrite:trace3] [pid 18507] mod_rewrite.c (470): [client 172.16.172.154:33378] 172.16.172.154 - tremch [lpgaixmgmtlx01 .test.sozvers.at/sid#1000b91f350][rid#1000bbca848/initial/redir#1] [perdir /var/www/git/] strip per-dir prefix: /var/www/git/gitweb.cgi/ansible.git/info/refs -> gitweb.cgi/ansible.git/info/refs [Tue Aug 14 11:22:04.702143 2018] [rewrite:trace3] [pid 18507] mod_rewrite.c (470): [client 172.16.172.154:33378] 172.16.172.154 - tremch [lpgaixmgmtlx01 .test.sozvers.at/sid#1000b91f350][rid#1000bbca848/initial/redir#1] [perdir /var/www/git/] applying pattern '^.*' to uri 'gitweb.cgi/ansible.git/info/refs' [Tue Aug 14 11:22:04.702154 2018] [rewrite:trace1] [pid 18507] mod_rewrite.c (470): [client 172.16.172.154:33378] 172.16.172.154 - tremch [lpgaixmgmtlx01 .test.sozvers.at/sid#1000b91f350][rid#1000bbca848/initial/redir#1] [perdir /var/www/git/] pass through /var/www/git/gitweb.cgi [Tue Aug 14 11:22:04.789914 2018] [cgi:error] [pid 18507] [client 172.16. 172.154:33378] AH01215: warning: ignoring broken ref info/refs. [Tue Aug 14 11:22:04.790045 2018] [cgi:error] [pid 18507] [client 172.16. 172.154:33378] AH01215: fatal: Not a valid object name info/refs my configs: apache config: LogLevel rewrite:trace3 Alias /git /var/www/git <Directory /var/www/git> Options +ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch AddHandler cgi-script cgi DirectoryIndex gitweb.cgi Require all granted RewriteEngine on # PATH_INFO usage for pretty URLs # make sure to enable it in gitweb.conf # # $feature{'pathinfo'}{'default'} = [1]; # RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.* /git/gitweb.cgi/$0 [L,PT] </Directory> ScriptAliasMatch \ "(?x)^/git/ (.*/(HEAD | \ info/refs | \ objects/(info/[^/]+ | \ [0-9a-f]{2}/[0-9a-f]{38} | \ pack/pack-[0-9a-f]{40}\.(pack|idx)) | \ git-(upload|receive)-pack))$" \ /usr/libexec/git-core/git-http-backend/$1 <Directory /usr/libexec/git-core/> Options +ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch Require all granted DirectoryIndex git-web--browse SetEnv GIT_PROJECT_ROOT /git SetEnv GIT_HTTP_EXPORT_ALL SetEnv GITWEB_CONFIG /etc/gitweb.conf </Directory> <LocationMatch "^/git/.*$"> Order deny,allow Deny from env=AUTHREQUIRED AuthType Basic AuthName "gitweb" AuthBasicProvider ldap AuthLDAPURL "ldap: //ldap.sozvers.at:389/ou=users,ou=aix,ou=apps,dc=sozialversicherung,dc=at?uid?one" AuthLDAPBindDN cn=roots,dc=sozialversicherung,dc=at AuthLDAPBindPassword XXX Include authorized-users.txt </LocationMatch> <LocationMatch "^/git/.*/git-receive-pack$"> Order deny,allow AuthType Basic AuthName "gitweb" AuthBasicProvider ldap AuthLDAPURL "ldap: //ldap.sozvers.at:389/ou=users,ou=aix,ou=apps,dc=sozialversicherung,dc=at?uid?one" AuthLDAPBindDN cn=roots,dc=sozialversicherung,dc=at AuthLDAPBindPassword XXX Include authorized-users.txt </LocationMatch> <Location "/git"> # Use authentication for both read/write Order deny,allow AuthType Basic AuthName "gitweb" AuthBasicProvider ldap AuthLDAPURL "ldap: //ldap.sozvers.at:389/ou=users,ou=aix,ou=apps,dc=sozialversicherung,dc=at?uid?one" AuthLDAPBindDN cn=roots,dc=sozialversicherung,dc=at AuthLDAPBindPassword XXX Include authorized-users.txt </Location> gitweb config # Set the path to git projects. This is an absolute # filesystem path which will be prepended to the project # path. our $projectroot = $ENV{'GITWEB_PROJECTROOT'} || "/git"; # Set the list of git base URLs used for URL to where # fetch project from, i.e. # the full URL is # "$git_base_url/$project". By default this is empty our @git_base_url_list = qw(http://lpgaixmgmtlx01.test.sozvers.at/git); our $site_name = "AIX gitweb"; $my_uri = "/git"; $home_link = "/git"; $home_link_str = "http://lpgaixmgmtlx01.test.sozvers.at/git"; # logo needs to be 72x27 $logo = "http://lpgaixmgmtlx01.test.sozvers.at/git/static/git-logo.png"; $logo_url = "http://lpgaixmgmtlx01.test.sozvers.at/"; $favicon = "http://lpgaixmgmtlx01.test.sozvers.at/git/static/git-favicon.png"; $stylesheet = "http://lpgaixmgmtlx01.test.sozvers.at/git/static/gitweb.css"; $per_request_config = 0; $feature{'pathinfo'}{'default'} = [1]; $projects_list_description_width = 140; # like twitter $omit_owner = 1; -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
