Skip to main content
2 of 3
Edited for clarity and formatting.
dan
  • 15.2k
  • 11
  • 45
  • 52

DNS only translates names into IP addresses and is oblivious to any port numbers.

However, you can use Apache as a reverse proxy to make the content accessible at git.domain.com by editing the virtual host file. I believe this answer on Server Fault shows one method of how to do this that should work well for you.

Analog
  • 2.4k
  • 17
  • 29