git/list[1] front-page[2] threads[3] people[4] search[5] about
 

newbie problem - gitweb and git over http

From
JBJ. Bakshi <joydeep@infoservices.in>
Date
Sep 2, 2010, 05:32 UTC
Message-ID
<20100902110242.2da0c81d@debian>
Hello,
I am a newbie in git technology, please bear with me. I am interested to implement git over http along with  gitweb.
At first I have already created a demo git repository in the server

`````````````` $ cd (project-directory) $ git init $ (add some files) $ git add . $ git commit -m 'Initial commit' ````````````````

Then I have set gitweb in apache
```````````````
 Alias /gitweb  /var/gitdir/
RewriteEngine On
RewriteRule ^gitweb$ gitweb/ [R]
SetEnv GITWEB_CONFIG /etc/gitweb.conf

<Directory "/var/gitdir/"> AllowOverride AuthConfig Options +ExecCGI +Indexes Order allow,deny Allow from all DirectoryIndex gitweb.cgi SetEnv GITWEB_CONFIG "/etc/gitweb.conf" AddHandler cgi-script .cgi </Directory> ``````````````````````````

After 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

`````````````` The requested URL /index.php was not found on this server ```````````````````

webdav is already running in this server for some other project. I have setup webdav for git like

````````` <IfModule mod_dav_svn.c> <Location /myproject.git> Dav on AuthType Basic AuthName "My repo with git" AuthUserFile /home/svn/PASSWORD <Limitexcept GET HEAD PROPFIND OPTIONS REPORT> Require valid-user </Limitexcept> </Location> </IfModule> ```````````````

Now testing with cadaver

````````````````` cadaver https://192.168.1.1/gitweb/test.git

Authentication required for Write access requires a password on server `192.168.1.1':
Username: svnadmin
Password:
Could not open collection:
404 Not Found
``````````````````````
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 ?
Thanks for your time
Next: J. Bakshi
Message 1 of 2 in “newbie problem - gitweb and git over http”
  1. J. BakshiSep 2, 2010
  2. J. BakshiSep 2, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.