{"thread":{"id":"24999","subject":"git over http configuration problem","startedAt":"2010-09-06T06:31:44Z","lastAt":"2010-09-06T06:31:44Z","messageCount":1,"participants":["J. Bakshi"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"150048","messageId":"20100906120144.19b2923c@debian","threadId":"24999","inReplyTo":null,"subject":"git over http configuration problem","fromName":"J. Bakshi","fromEmail":"joydeep@infoservices.in","sentAt":"2010-09-06T06:31:44Z","receivedAt":"2010-09-06T06:31:44Z","isPatch":false,"sender":{"key":"joydeep@infoservices.in","avatar":null},"body":"\nHello,\n\nI am a newbie in git technology, please bear with me. I am interested to implement git over http along with gitweb.\n\nAt first I have already created a demo git repository in the server , After restating apache I can see gitweb at http://192.168.1.1/gitweb \nHere is the apache related configuration\n\n```````````````\nAlias /gitweb /var/gitdir/\nRewriteEngine On\nRewriteRule ^gitweb$ gitweb/ [R]\nSetEnv GITWEB_CONFIG /etc/gitweb.conf\n\n<Directory \"/var/gitdir/\">\nAllowOverride AuthConfig\nOptions +ExecCGI +Indexes\nOrder allow,deny\nAllow from all\nDirectoryIndex gitweb.cgi\nSetEnv GITWEB_CONFIG \"/etc/gitweb.conf\"\nAddHandler cgi-script .cgi\n</Directory>\n``````````````````````````\n\nwebdav is successfully running in this server for some other project. I have setup webdav for git like\n\n`````````\n<IfModule mod_dav_svn.c>\n<Location /myproject.git>\nDav on\nAuthType Basic\nAuthName \"My repo with git\"\nAuthUserFile /home/svn/PASSWORD\n<Limitexcept GET HEAD PROPFIND OPTIONS REPORT>\nRequire valid-user\n</Limitexcept>\n</Location>\n</IfModule>\n```````````````\n\nNow testing with cadaver\n\n`````````````````\ncadaver https://192.168.1.1/gitweb/test.git\n\nAuthentication required for Write access requires a password on server `192.168.1.1':\nUsername: svnadmin\nPassword:\nCould not open collection:\n404 Not Found\n\n``````````````````````\n\nI think there are some configuration problem which can't find the correct location/path. Could anyone kindly enlighten me, actually where the problem is ? Here is /etc/gitweb.conf\n\n````````````````````````\n$feature{'blame'}{'default'} = [undef];\n$feature{'pickaxe'}{'default'} = [undef];\n$feature{'search'}{'default'} = [undef];\n$feature{'grep'}{'default'} = 1;\n$feature{'snapshot'}{'default'} = ['tgz', 'gzip', 'zip'];\n$feature{'snapshot'}{'override'} = 1;\n\n# path to git projects (<project>.git)\n$projectroot = \"/home/git\";\n\n# directory to use for temp files\n$git_temp = \"/tmp\";\n\n$projects_list = $projectroot;\n$export_ok = \"\";\n$strict_export = \"true\";\n\n$site_name = \"The Average Geek's Git Repo\";\n$fallback_encoding = 'utf-8';\n@stylesheets = (\"gitweb.css\");\n$projects_list_description_width = 50;\n``````````````````````````````````\n\nThanks for your time\n"}]}