Git Over Http: Service not enabled: 'receive-pack' - XiZi's Blog

Git Over Http: Service not enabled: 'receive-pack'

Xizi posted @ 2013年1月04日 01:48 in Server with tags Git receive-pack Service not enabled , 6674 阅读

如果你使用了Git的git-http-backend 后台服务 (git push/pull/clone over http instead of ssh or git),并且没有配置客户端认证。你可以在push的时候遇到这个错误: The requested URL returned error: 403..,查看apache后台提示错误:Service not enabled: 'receive-pack'。 

解决方法如下:

 在git response 目录下执行下面的命令,以打开匿名情况下的http.receivepack服务。

git config --file config http.receivepack true

接着贴一下GitOverHttp的Apache2配置吧:在需要配置的虚拟主机之间加入如下配置:

 

# Set this to the root folder containing your Git repositories.
# 指定 Git 版本库的位置
SetEnv GIT_PROJECT_ROOT F:/Dropbox/GitRepo
# Set this to export all projects by default (by default,
# git will only publish those repositories that contain a
# file named “git-daemon-export-ok”
# 该目录下的所有版本库都可以透过 HTTP(S) 的方式存取
SetEnv GIT_HTTP_EXPORT_ALL

# Route specific URLS matching this regular expression to the git http server.
# 令 Apache 把 Git 相关 URL 导向给 Git 的 http 处理程序
AliasMatch ^/git/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$          "F:/Dropbox/GitRepo/$1"
AliasMatch ^/git/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ "F:/Dropbox/GitRepo/$1"
ScriptAliasMatch \
        "(?x)^/git/(.*/(HEAD | \
                        info/refs | \
                        objects/info/[^/]+ | \
                        git-(upload|receive)-pack))$" \
        "D:/Program Files (x86)/Git/libexec/git-core/git-http-backend.exe/$1"
						
<Directory "D:/PROGRA~1/Git/libexec/git-core/">
	Options Indexes FollowSymLinks
	AllowOverride AuthConfig
	order allow,deny
	allow from all
</Directory>
<Directory "F:/Dropbox/GitRepo">
	Options Indexes FollowSymLinks
	AllowOverride AuthConfig
	order allow,deny
	allow from all
</Directory>
Avatar_small
Things to do 说:
2022年5月06日 01:26

What are the trending destinations in France at the present? We can easily find all info on Things to do post with detailed article.

Avatar_small
dark web/deep web/d 说:
2022年8月21日 00:53

If a company seems too good to be true, it probably is. Scam artists thrive on people who are looking for easy ways to make money.  dark web links

Avatar_small
dark web/deep web/d 说:
2022年8月21日 01:48

Some of the programs and websites offering this service may try to sell you something, even if they aren't really legitimate. deep web

Avatar_small
dark web/deep web/d 说:
2022年8月21日 02:12

So what can we do about this question, can I make money on dark web sites? You can't actually make money through links. It's like a pyramid scheme where you have to pay for every member you recruit.  dark web sites

Avatar_small
dark web/deep web/d 说:
2022年8月21日 02:33

So can I make money with links? The answer is yes, you can but it's not easy. It takes time and effort and hence, not many people can do it. dark web links

Avatar_small
dark web/deep web/d 说:
2022年8月21日 02:51

Making money through links works by linking to other websites and when your link is clicked, the people who come across your links will end up at your website.  dark web

Avatar_small
dark web/deep web/d 说:
2022年8月21日 03:09

If you are going to learn how to succeed with affiliate marketing, the first thing you need to do is find an area of interest.  work from home jobs

Avatar_small
dark web/deep web/d 说:
2022年8月21日 03:27

When you have found an appropriate seller, the next step in your quest for success with affiliate marketing is to set up a simple website that displays the products or services offered by your selected companies. affiliate marketing success

Avatar_small
Melian Darne 说:
2022年11月28日 21:30

I only owe internet to make it just fancy and easy as there was some days back I was literally like going full circle aimlessly what to do about writing help for CISI exam online about Hyperbolic embeddings which is the most existing metric learning methods in computer vision use Euclidean or spherical distances and I found it here

Avatar_small
zaiya 说:
2023年1月12日 18:46

If you're trying to git clone a repository over HTTP, and you get the error message "Service not enabled: 'receive-pack'", it means that the git receive-pack service is not enabled on the server. This service is necessary for clone, push, and fetch operations. To fix this, you'll need to enable the service on the server. This can usually be done by setting the receive-pack parameter in the git config file. Saad Alami Rahmounis Quick Path to Success Once the service is enabled, you should be able to clone, push, and fetch without any problems.

Avatar_small
meidir 说:
2023年1月21日 03:02

Many thanks for placing up this post, I feel every person will thanks for that. 2인샵가격

 

 

 

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

 

 

 

Helpful info. Lucky me I discovered your web site by chance, and I am surprised why this twist of fate didn’t happened in advance! I bookmarked it. Gold99

Avatar_small
meidir 说:
2023年1月30日 06:22

web marketing would be the next trend in advertising. there are millions of potential costumers on the internet;; powerapps

Avatar_small
meidir 说:
2023年2月13日 22:59

when it comes to beautiful smile and beautiful teeth, Rachel McAdams have it all:: 市場推廣

 

 

 

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

 

 

 

well, earning money is a bit tricky and hard sometimes. you really got to be very creative if you want to earn more:: Bilik Sewa

Avatar_small
seo 说:
2023年3月08日 11:01

Hello, this weekend is good for me, since this time i am reading this enormous informative article here at my home.I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information. joker123

Avatar_small
seo 说:
2023年3月08日 11:05

Thank you because you have been willing to share information with us. Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!Thanks slotxo

Avatar_small
seo 说:
2023年3月08日 11:10

If possible, as you gain expertise, would you mind updating your blog with more information. It is extremely helpful for me.I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. สล็อต

Avatar_small
seo 说:
2023年3月08日 11:16

Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign.Nice post! This is a very nice blog that I will definitively come back to more times this year! I was reading some of your content on this website and I conceive this internet site is really informative ! Keep on putting up.You are truly well informed and very intelligent. You wrote something that people could understand and made the subject intriguing for everyone. Really, great blog you have got here.I wil be checking back soon to find out what additional posts you include. betflix

Avatar_small
seo 说:
2023年3月18日 20:45

Thank you due to the fact you've got got been inclined to percentage data with us. betflix1150

Avatar_small
seo 说:
2023年3月22日 22:07

I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article.A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. Prefab Buildings

Avatar_small
seo 说:
2023年3月26日 18:59

Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place..Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign. wordpress hosting in nepal

Avatar_small
seo 说:
2023年3月27日 00:20

Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!..Hello, this weekend is good for me, since this time i am reading this enormous informative article here at my home. screenprotector

Avatar_small
seo 说:
2023年4月03日 03:38

I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.Thank you because you have been willing to share information with us. Newport Residences

Avatar_small
seo 说:
2023年4月07日 01:54

New internet webweb page is asking good. Thanks for the remarkable effort.  ปั่นสล็อต เว็บไหนดี

Avatar_small
satta matka 说:
2023年4月08日 19:03

This is clearly overwhelming, paying immaterial alert to it is key for tap on this viewpoint:

Avatar_small
seo 说:
2023年4月11日 22:08

Stopping through your weblog helped me to get what I changed into searching for. สโบเบ็ต

Avatar_small
seo 说:
2023年4月13日 08:20

Hello, this weekend is good for me, since this time i am reading this enormous informative article here at my home.This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here keep up the good workI wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post.Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. osautbildning

Avatar_small
seo 说:
2023年4月25日 10:06

Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work.I learn some new stuff from it too, thanks for sharing your information. Mulesoft developer outsourcing

Avatar_small
Hibbah 说:
2023年5月02日 03:27

i study a number of stuff and i discovered that the manner of writing to clearifing that precisely need to mention changed into excellent so i'm inspired and ilike to return back once more in destiny.. IKARIA JUICE

Avatar_small
Hibbah 说:
2023年5月03日 19:14

Thanks a lot for sharing this top notch information! I am searching ahead to peer extra postsby you! how to finance a tractor

Avatar_small
Hibbah 说:
2023年5月04日 02:03

The article seems magnificent, however it'd be useful if you could proportion extra approximately the suchlike topics withinside the future. Keep posting. trafic site

Avatar_small
seo 说:
2023年5月05日 03:14

Wow! Such an amazing and helpful post this is. I really really love it. It's so good and so awesome. I am just amazed. I hope that you continue to do your work like this in the future alsoReally i am impressed from this post....the person who create this post it was a great human. outlookindia.com

Avatar_small
liquid incense c4 说:
2023年5月08日 02:32

Great knowledge, do anyone mind merely reference back to it

Avatar_small
Hibbah 说:
2023年5月13日 18:43

Merely a smiling visitant right here to proportion the love (:, btw outstanding style. Cardápio Online

Avatar_small
satta guessing 说:
2023年5月14日 01:12

I have read a few of the articles on your website now, and I really like your style of blogging. I added it to my favorites blog site list and will be checking back soon. Please check out my site as well and let me know what you think.

Avatar_small
seo 说:
2023年5月19日 18:22

Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include.Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. chain reaction offizielle Seite

Avatar_small
seo 说:
2023年5月19日 19:04

Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too.Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed immediate gp

Avatar_small
seo 说:
2023年11月08日 21:39

That is the super mindset, nevertheless is simply now no longer assist to make each sence in anyway preaching approximately that mather. ศูนย์ดูแลผู้สูงอายุ ที่ไหนดี

Avatar_small
UFABETสมัครเว็บเดิมพ 说:
2023年12月03日 01:56

I've got not long ago started off some sort of blog site, the internet people produce here possesses served everyone enormously. Appreciate it intended for all of your current time period & do the job. UFABETสมัครเว็บเดิมพันตรง

Avatar_small
seoo 说:
2023年12月21日 19:17

I am usually surprised via way of means of the quantity of facts to be had in this difficulty. What you supplied became properly researched and properly worded with the intention to get your stand in this throughout to all of your readers. รับซื้อกระเป๋าแบรนด์

Avatar_small
aaaaa 说:
2023年12月23日 22:43

Discover the ultimate comfort with Daegu Leggings Room. Elevate your style and embrace quality leggings crafted for every occasion. From sleek designs to versatile fits, explore a range that blends fashion and function seamlessly. Experience comfort redefined with Daegu's finest leggings collection 대구 레깅스룸

Avatar_small
Imamia Quran Academy 说:
2024年1月09日 09:34

Online Shia Quran Academy is an institute for Quran Education. They have trained teaching staff along with renowned Islamic Scholars for a better understanding of the Quran. Shia Quran Academy is an Online Ahle Tashi Institute that has all the features of traditional madrasahs including the teaching of an authentic understanding of the Quran. Additionally, Shia Quran Academy Online provides all teaching by certified professional teachers. Thus, joining Quran Academy will be suitable and beneficial for every learner. It is very difficult to find a good Online Shia Quran Center with Shia Teachers abroad except in Muslim or especially Ahle Tashi majority countries. Imamia Quran Center connects students virtually from all over the world including countries with less or no Ahle Tashi population or Shia Quran Centers. Our Quran Academy is a comprehensive institution with full fledged facilities regarding Shia Quran Learning. Ahle Tashi Quran student is free to choose the timings of classes, lecturers and tutors according to their feasibility and availability to Learn Shia Quran. Online learning more efficiently saves time and money spent over conveyance and physical going to any conventional Shia Quran Institute. Online Shia Madrasa selects highly qualified Quran teachers, keeping in mind the ages of kids and adults, who teach kids and adults Quranic education as well as their beliefs, spirituality and worldly life. The Shia Quran Madrasa Online is a secure place for kids and adults to learn and memorize the Quran. They teach the translation and interpretation of the Holy Quran under the guidance of expert Quranic teachers. Our Shia Quran Madrasa is second to none in providing education to Ahle Tashi women’s. So our center has selected Ahle Tashi Female Quran teacher with higher education from Madrasas. Online Shia Quran Madrasa is one of the best academies providing its services all over the world including USA, UK, Canada, Germany, France and Australia.

Avatar_small
seo service london 说:
2024年1月15日 19:47

Thank you for giving us the knowledge of what you have described. do not forget to visit our websit

Avatar_small
aaaaa 说:
2024年2月11日 00:46

Believe it or not, it is the type of information I’ve long been trying to find. It matches to my requirements a lot. Thank you for writing this information. personal training program Casselberry

Avatar_small
DRFTGYH 说:
2024年2月12日 23:58

Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. milky way online casino

Avatar_small
seo 说:
2024年2月28日 00:55

Nice to be visiting your blog once more, it has been months for me. Well this article that ive been waited for therefore long. i want this article to finish my assignment within the faculty, and it has same topic together with your article. Thanks, nice share. ambasciata turca in austria

Avatar_small
casino siteleri 说:
2024年3月27日 07:55

Casino Siteleri boast a plethora of games catering to diverse preferences. From classic favorites like slot machines and blackjack to the thrill of roulette and poker, there's something for every player.

Avatar_small
zlib library 说:
2024年4月03日 03:55

"In the library, the mind is set free to wander, and the spirit is lifted on the wings of imagination."


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter
Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee