When I try to clone a repository with my domain name, it fails. But,
it works when I use the IP address directly.
Here is the issue:
(this works fine)
/tmp » git clone http://:3000/pratap/myna.git
Cloning into ‘myna’…
Username for ‘http://:3000’: pratap
Password for ‘http://pratap@:3000’:
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 9 (delta 1), reused 0 (delta 0)
Unpacking objects: 100% (9/9), done.
Now, I can access the gogs site from a browser, successfully both
ways. That is, from within my chrome browser, I can browse to
1) http://:3000/, and also
and it works fine (I reach the gogs sign-on page)
I have set up the sub-domain name gogs.example.org to point to
<IP-addr-of-home-router:3000 by adding two records, one is a “URL
redirect record” and the other is a “SRV record” to my domain hoster’s
advanced DNS settings. I have also forwarded port 3000 to my home
raspberry pi where gogs is runnning.
What am I doing wrong?
Why can I access gogs.example.org via Chrome browser, but not via git
clone from the command line?
My gogs version is:
[email protected]:~ $ /home/git/gogs/gogs -v
Gogs version 0.11.97.1116