title: 401 Unauthorized error by eclipse while cloning from git repository hosted on Apache Http Server
body: <p>I have hosted git repository on Apache Http server and I have used Basic Authentication and  git (git-http-backend.exe). </p>
  
  <p>I can clone, pull, push using command promt by providing username and password but
  When,
   I tried to clone through eclipse (mars.1) is showing</p>
  
  <p>401 Unauthorized</p>
  
  <p><a href="https://i.stack.imgur.com/GJM1m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GJM1m.png" alt="enter image description here"></a></p>
  
  <p>Below is my httpd.conf</p>
  
  <pre><code>SetEnv GIT_PROJECT_ROOT C:/Repositories
  SetEnv GIT_HTTP_EXPORT_ALL
  SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER
  ScriptAliasMatch \
      "(?x)^/(.*/(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))$" \
                      "C:/Program Files/Git/mingw64/libexec/git-core/git-http-backend.exe/$1"  
  
  
  # Authentication
  &lt;LocationMatch "^/.*/git-receive-pack$"&gt;
      Options +ExecCGI
      #Options +Indexes +FollowSymLinks +ExecCGI
      AuthType Basic
      AuthName "Git Login"
      AuthUserFile "C:/Apache24/bin/gituserpass.git"
      Require user ensys
      Require valid-user
  &lt;/LocationMatch&gt;
  
  
  &lt;LocationMatch "^/.*/git-upload-pack$"&gt;
      Options +ExecCGI
      #Options +Indexes +FollowSymLinks +ExecCGI
      AuthType Basic
      AuthName "Git Login"
      AuthUserFile "C:/Apache24/bin/gituserpass.git"
      Require user ensys    
  &lt;/LocationMatch&gt;
  
  &lt;Directory /&gt;
  Require all granted
  &lt;/Directory&gt;
  </code></pre>