Procedure of setting up git http server
Assumptions: you already have git and a bared git repository installed on the server
1. install apache http server
2. open conf/httpd.conf
a. find line "#Include conf/extra/httpd-vhosts.conf" and remove # mark from the begining of the line
3. open conf/extra/http-vhosts.conf, input below lins
<VirtualHost *:80>
ServerName your_server_name
DocumentRoot "your git repository path"
</VirtualHost>
it looks like below after finish
<VirtualHost *:80>
ServerName localhost
DocumentRoot "G:/GIT/REMOTEHUB"
</VirtualHost>
4. reopen conf/http.conf
a. find below block
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
b. add lines below after
<Directory "your git repository path">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
5. cd to your git repository directory and run below command
git update-server-info
6. start apache http server
7. then you can clone git repository using belown sytac
git clone http://server/git_repository_directory