| Author |
Message |
Stan 2.0
Joined: 28 May 2011
Posts: 12
|
| Posted: Fri Jul 08, 2011 6:38 am Post subject: [Solved] Accessing Git via Subdomain (only) |
|
|
I want to access the Git repos on my server via a subdomain (git.mydomain.com) only. How do I accomplish that? I set an A/AAAA record to git.mydomain.com, but where do I go from here?
Git already works fine when I just use my IP.
Thank you! |
|
| Back to top |
|
obs
Joined: 07 Mar 2010
Posts: 1403
Location: Earth
|
| Posted: Fri Jul 08, 2011 7:31 am Post subject: |
|
|
| All you need to do is point your A record at your servers IP and wait 15 minutes for Linode DNS servers to update. |
|
| Back to top |
|
Stan 2.0
Joined: 28 May 2011
Posts: 12
|
| Posted: Fri Jul 08, 2011 7:38 am Post subject: |
|
|
| Thanks, this is working now. Is there any way to make sure that only this subdomain can be used for Git? |
|
| Back to top |
|
obs
Joined: 07 Mar 2010
Posts: 1403
Location: Earth
|
| Posted: Fri Jul 08, 2011 7:45 am Post subject: |
|
|
| Git over ssh? Probably not why would you want to? |
|
| Back to top |
|
Stan 2.0
Joined: 28 May 2011
Posts: 12
|
| Posted: Fri Jul 08, 2011 7:51 am Post subject: |
|
|
| I'm just interested if it can be done. Of course it doesn't really matter. |
|
| Back to top |
|
hoopycat
Joined: 30 Aug 2008
Posts: 1294
Location: Rochester, New York
|
| Posted: Fri Jul 08, 2011 9:04 am Post subject: |
|
|
| SSH only knows which username and IP address is being connected to; the protocol doesn't pass the hostname being used by the client. (HTTP is one of the few protocols that does, so it's the exception here.) |
|
| Back to top |
|
| |