{"thread":{"id":"24946","subject":"newbie problem - gitweb and git over http","startedAt":"2010-09-02T05:32:42Z","lastAt":"2010-09-02T05:43:53Z","messageCount":2,"participants":["J. Bakshi"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"149618","messageId":"20100902110242.2da0c81d@debian","threadId":"24946","inReplyTo":null,"subject":"newbie problem - gitweb and git over http","fromName":"J. Bakshi","fromEmail":"joydeep@infoservices.in","sentAt":"2010-09-02T05:32:42Z","receivedAt":"2010-09-02T05:32:42Z","isPatch":false,"sender":{"key":"joydeep@infoservices.in","avatar":null},"body":"Hello,\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\n\n``````````````\n$ cd (project-directory)\n$ git init\n$ (add some files)\n$ git add .\n$ git commit -m 'Initial commit'\n````````````````\n\nThen I have set gitweb in apache\n\n```````````````\n Alias /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\nAfter restating apache I can see gitweb at http://192.168.1.1/gitweb ; but clicking on the demo project, which I have created;  just gives an error as\n\n``````````````\nThe requested URL /index.php was not found on this server\n```````````````````\n\nwebdav is already 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 for both the cases there are some configuration problem which can't find the correct location/path. Could anyone kindly enlighten me, actually where the problem is ?\n\nThanks for your time\n"},{"id":"149620","messageId":"201009020543.o825hfUm005721@dcnode-02.unlimitedmail.net","threadId":"24946","inReplyTo":"20100902110242.2da0c81d@debian","subject":"Re: newbie problem - gitweb and git over http","fromName":"J. Bakshi","fromEmail":"j.bakshi@unlimitedmail.org","sentAt":"2010-09-02T05:43:53Z","receivedAt":"2010-09-02T05:43:53Z","isPatch":false,"sender":{"key":"j.bakshi@unlimitedmail.org","avatar":null},"body":"On Thu, 2 Sep 2010 11:02:42 +0530\n\"J. Bakshi\" <joydeep@infoservices.in> wrote:\n\n<snip>\n\n> \n> ``````````````\n> The requested URL /index.php was not found on this server\n\n</snip>\n\ngitweb related issue is solved. At /etc/gitweb.conf the following was creating the problem\n\n```````````````````\n$feature{'pathinfo'}{'default'} = [1];\n```````````````\n\ncommenting it has solved the gitweb issue.   But no success with webda  :-(\n \n> ```````````````````\n> \n> webdav is already 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>\n> Dav on\n> AuthType Basic\n> AuthName \"My repo with git\"\n> AuthUserFile /home/svn/PASSWORD\n> <Limitexcept GET HEAD PROPFIND OPTIONS REPORT>\n> Require valid-user\n> </Limitexcept>\n> </Location>\n> </IfModule>\n> ```````````````\n> \n> Now testing with cadaver\n> \n> `````````````````\n> cadaver https://192.168.1.1/gitweb/test.git\n> \n> Authentication required for Write access requires a password on server `192.168.1.1':\n> Username: svnadmin\n> Password:\n> Could not open collection:\n> 404 Not Found\n> \n> ``````````````````````\n> \n> I think for both the cases there are some configuration problem which can't find the correct location/path. Could anyone kindly enlighten me, actually where the problem is ?\n> \n> Thanks for your time\n"}]}