# Re: git daemon directory munging?

2 messages from 2006-06-05 to 2006-06-05. Participants: Jon Loeliger, H. Peter Anvin.
Thread: https://gitlist.dev/t/4397

## Jon Loeliger, 2006-06-05 02:10

Subject: Re: git daemon directory munging?
Message-ID: <E1Fn4Xf-0000bL-82@jdl.com>
URL: https://gitlist.dev/e/E1Fn4Xf-0000bL-82%40jdl.com

```

> Well, you can bind different git daemons to different IP addresses 
> (IP-based vhosting) or different ports (with SRV records in DNS.)

Is there existing support for telling the git-daemon what
specific IP to bind to out of an inetd setup and I just
missed it?

I could set that up realatively easily and gain the 
functionality I wanted that way too.

I've also hacked in a host interpolation too.

But like you said, canonicalizing it and checking it is likely
a bit of a pain.  I've side-stepped one angle of that by
symlinking in my /pub directory for multiple different
hostnames too.  :-)

jdl

```

## H. Peter Anvin, 2006-06-05 02:59

Subject: Re: git daemon directory munging?
Message-ID: <44839E19.8070007@zytor.com>
URL: https://gitlist.dev/e/44839E19.8070007%40zytor.com
In-Reply-To: <E1Fn4Xf-0000bL-82@jdl.com>

```
Jon Loeliger wrote:
>> Well, you can bind different git daemons to different IP addresses 
>> (IP-based vhosting) or different ports (with SRV records in DNS.)
> 
> Is there existing support for telling the git-daemon what
> specific IP to bind to out of an inetd setup and I just
> missed it?
> 

No, but that really should be added.  It's a pretty trivial hack.

> I could set that up realatively easily and gain the 
> functionality I wanted that way too.
> 
> I've also hacked in a host interpolation too.
> 
> But like you said, canonicalizing it and checking it is likely
> a bit of a pain.  I've side-stepped one angle of that by
> symlinking in my /pub directory for multiple different
> hostnames too.  :-)
> 

Doesn't work very well.  DNS is case-insensitive, and worse, there are 
the PunyCode aliases or whatever they're called.

	-hpa

```
