Nginx + git 404 error handling

Source: Internet
Author: User

404 Not find error occurs when you use ngnix + git to build an HTTP git access environment. The reason is that you forgot to execute the GIT Update-server-Info command when creating git repository, the file cannot be found when you access git resository through HTTP or HTTPS.
The solution is as follows:
(1) Go to git Repository
[Root @ gjz git] # cd test. Git/
(2) execute the update-server-Info command
[Root @ gjz test. Git] # git Update-server-Info

For more information, see:
Http://stackoverflow.com/questions/2085402/what-does-git-update-server-info-do
Dumb server basically means accessed over HTTP. So if you access your git repository overHTTP:OrHttps:URLs, you needUpdate-server-InfoBusiness, otherwise (Git:,SSH:, Etc.) You don't need it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.