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

  • SEARCH
  • Home
  • 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 6784791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:02:31+00:00 2026-05-26T17:02:31+00:00

I am trying to set up git on my Debian server. However, I’m going

  • 0

I am trying to set up git on my Debian server. However, I’m going crazy about this Smart HTTP stuff, as I want to use the Egit plug-in for eclipse and it requires Smart HTTP. And for this reason I’m unable to push my local branch to the remote repository on my server. I have installed Apache and Git 1.7.2.3. I’m using Basic Authentication and have enabled mod_cgi, mod_env and mod_alias. My apache config file for the git stuff is located at /etc/apache2/sites-available/git and has about the following contents:

 <VirtualHost *:80>
         Servername git.mydomain.com
         DocumentRoot /var/git
         SetEnv GIT_PROJECT_ROOT /var/git/
         SetEnv GIT_HTTP_EXPORT_ALL
         ScriptAlias /git/ /usr/lib/git-core/git-http-backend/
         <Directory "/var/git">
            DAV On
            Options +Indexes +FollowSymLinks
            Deny from all
            AuthType Basic
            AuthName "git repository"
            AuthUserFile /var/git/.htpasswd
            AuthGroupFile /var/git/.htgroup
         </Directory>
         <Directory /var/git/allternative>
                 Allow from all
                 Order allow,deny
                 Require group allternative
         </Directory>
         <Directory "/usr/lib/git-core/git-receive-pack">
                 Allow from all
                 Order allow,deny
                 Require group allternative
         </Directory>
 </VirtualHost>

The diretories are the following:

  • /var/git: This is the directory where all my repositories will be
  • /var/git/allternative: This is the directory where the (bare) repository lies that I’m currently trying to set up

I did everything that I read on this article (and many others saying about the same): http://progit.org/2010/03/04/smart-http.html

I still get the error from Egit that remote Smart HTTP is not enabled. What am I missing?

Thanks in advance,
Andreas

  • 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-26T17:02:32+00:00Added an answer on May 26, 2026 at 5:02 pm

    Answering my own question:
    I replaced the ScriptAlias directive with this:

      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))$" \
                   "/usr/lib/git-core/git-http-backend/$1"
    

    And Also added the following directive:

    SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER
    

    Then it worked. I found those two settings on http://www.espace.com.eg/blog/2010/11/10/migrating-from-subversion-to-git/ and I’m not exactly sure which one of the two solved the problem, but I assume it was the SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER directive.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to set-up a git server on my local dev machine and have been
I am trying to set up a git server with bunch of repositories. I
I'm trying to set up hudson with git according to this article , but
I am trying to properly set up my Git repositories on a remote server
I just set myself up a Git server on Amazon, and I was trying
This is my first time trying to set up capistrano to deploy a rails
I'm trying to set up a Windows-based web server, but do the development work
I'm creating an online community and I'm trying to set up a development server.
I'm trying to set up Git for staging my website so that I can
I'm trying to set up a git post-receive hook such that when a commit

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.