Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4000804
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:49:37+00:00 2026-05-20T07:49:37+00:00

I’ve been going a this for two days in a row now, and I’m

  • 0

I’ve been going a this for two days in a row now, and I’m giving up on finding the solution all by myself.
I am trying to set up Redmine on a server – that part went well. I am also trying to install a git repository, but although I’ve been able to clone and pull perfectly well via SSH, I’m having a rough time doing the same over HTTP.

First of all, here is the verbose git push error:

================================================================

$ GIT_CURL_VERBOSE=1 git push http://192.168.0.13/gitweb/Project master
* Couldn’t find host 192.168.0.13 in the _netrc file; using defaults
* About to connect() to 192.168.0.13 port 80 (#0)
* Trying 192.168.0.13… * 0x20ab4f0 is at send pipe head!
* Connected to 192.168.0.13 (192.168.0.13) port 80 (#0)

GET /gitweb/Project/info/refs?service=git-receive-pack HTTP/1.1
User-Agent: git/1.7.4.3282.g844cb
Host: 192.168.0.13
Accept: /
Pragma: no-cache

  • The requested URL returned error: 403
  • Expire cleared
  • Closing connection #0
  • Couldn’t find host 192.168.0.13 in the _netrc file; using defaults
  • About to connect() to 192.168.0.13 port 80 (#0)
  • Trying 192.168.0.13… * 0x20ab4f0 is at send pipe head!
  • Connected to 192.168.0.13 (192.168.0.13) port 80 (#0)

    GET /gitweb/Project/info/refs HTTP/1.1
    User-Agent: git/1.7.4.3282.g844cb
    Host: 192.168.0.13
    Accept: /
    Pragma: no-cache

  • The requested URL returned error: 403

  • Closing connection #0
    error: The requested URL returned error: 403 while accessing http://192.168.0.13
    /gitweb/Project/info/refs

fatal: HTTP request failed

================================================================

So there are obviously some misconfigured rights, eventhough I’ve temporarily chmodded my repository folder to 777.

I reckon you’ll also be interested in apache’s configuration:

================================================================

ServerAdmin webmaster@localhost

[...snip...]

PerlLoadModule Apache::Redmine
SetEnv GIT_PROJECT_ROOT /var/cache/git/
SetEnv GIT_HTTP_EXPORT_ALL
ScriptAlias /git/ /usr/lib/git-core/git-http-backend/

<Location "/git/">
    DAV on
    AuthType Basic
    AuthName "Git Repository"
    Require valid-user

    PerlAccessHandler Apache::Authn::Redmine::access_handler
    PerlAuthenHandler Apache::Authn::Redmine::authen_handler

    RedmineDSN "DBI:mysql:database=redmine;host=localhost"
    RedmineDbUser "redmine" 
    RedmineDbPass "XXXXXXX" 
    RedmineGitSmartHttp yes
</Location>

Alias /gitweb/ "/var/cache/git/public/"
<Location "/gitweb/">
    Order deny,allow
    Deny from all
    <Limit GET PROPFIND OPTIONS REPORT>
       Options Indexes FollowSymLinks MultiViews
       Allow from 127.0.0.1
       Allow from localhost
    </Limit>
</Location>

================================================================

So if someone would be so kind as to give me a hint about what to do, I’d really be grateful. Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T07:49:38+00:00Added an answer on May 20, 2026 at 7:49 am

    Okay, problem solved 🙂 This is the tutorial to follow to the letter:

    http://www.redmine.org/projects/redmine/wiki/HowTo_configure_Redmine_for_advanced_git_integration

    In my case, the final entry looks like:

    PerlLoadModule Apache::Redmine
    
    Alias /git/ "/var/cache/git/public/"
    <Directory "/git/">
        Options None
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    
    <Location "/git/">
        DAV on
        AuthType Basic
        AuthName "My Git Repository"
        Require valid-user
    
        PerlAccessHandler Apache::Authn::Redmine::access_handler
        PerlAuthenHandler Apache::Authn::Redmine::authen_handler
    
        RedmineDSN "DBI:mysql:database=redmine;host=localhost"
        RedmineDbUser "redmine" 
        RedmineDbPass "XXXXXXX" 
        RedmineGitSmartHttp yes
    </Location>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I'm looking for suggestions for debugging... If you view this site in Firefox or
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
Seemingly simple, but I cannot find anything relevant on the web. What is the
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.