title: Git + Smart Http(s): 403 Error
body: <p>Although i have read many posts, I was not able to solve this problem.<br>
  I want to use Git + Smart Http, using a remote repository on my rasperry pi.<br>
  I'm running on Arch Linux.<br>
  First, let's consider an Http configuration (and not https), for semplicity.<br>
  Apache and Git are correctly installed on my Rasperry Pi, and the port for the Http connection is 8080.<br><br></p>
  
  <p>On my Raspberry Pi: <br><br>
   1. I have uncommented in /etc/httpd/conf/http.conf the lines about mod_cgi, mod_alias, and mod_env <br><br>
   2. I have added to /etc/httpd/conf/http.conf these lines:</p>
  
  <pre><code>SetEnv GIT_PROJECT_ROOT /srv/git
  SetEnv GIT_HTTP_EXPORT_ALL
  ScriptAlias /git/ /usr/lib/git-core/git-http-backend/
  
  &lt;Directory "/usr/lib/git-core*"&gt;
      Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <ol start="3">
  <li><p>I have created the directory /srv/git</p>
  
  <p><pre><code># mkdir -p /srv/git</pre></code></p></li>
  <li><p>I have created and initialized a git repository:</p>
  
  <p><pre><code># mkdir -p /srv/git/test.git</pre></code>
  <pre><code># git init --bare</pre></code></p></li>
  <li><p>I have changed owner and group of the repo:</p>
  
  <p><pre><code># chown -R http:http /srv/git/test.git</pre></code></p></li>
  </ol>
  
  <p>On my client:</p>
  
  <ol>
  <li><p>I have cloned the repo inside the folder</p>
  
  <p><pre><code>$ git clone <a href="http://address:8080/git/test.git" rel="nofollow">http://address:8080/git/test.git</a></pre></code></p></li>
  <li><p>I have created and added a new file and I have committed</p>
  
  <p><pre><code>$ nano test.c</pre></code>
  <pre><code>$ git add test.c</pre></code>
  <pre><code>$ git commit -m 'first' </pre></code></p></li>
  <li><p>I have pushed the new project on my Rasperry Pi</p>
  
  <p><pre><code>$ git push origin master</pre></code></p></li>
  </ol>
  
  <p>But I have this error:</p>
  
  <pre><code>atal: unable to access 'address:8080/git/test.git/';: The requested URL returned error: 403
  </code></pre>