You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Dirk.vanGulik" <Di...@jrc.it> on 1996/04/29 14:27:44 UTC

Re: This host crap

>
> Here's a patch. BTW, have we decided yet if my htdigest utility can be
> included in the next release of 1.1 beta?

I am not very happy with this patch, elect6.jrc.it. is quite
different (or can be quite different) from say elect6.jrc.it
and elect6, and I'd like to either logs/use the *FULL* QHN, i.e.
down to the last dot or the host names as they came in. It is
just that that trailing dot means a lot and is a vital escape
hatch if your searchpath or local DNS cache really fucks up.

Also, There are plenty of organizations which have got just one
sun, which is called 'sun', if you do a grep for 
sun.com.*.com. etc you find quite a few!

Dw.

> diff -c -r1.18 http_protocol.c
> *** http_protocol.c     1996/04/16 07:54:07     1.18
> --- http_protocol.c     1996/04/27 07:18:09
> ***************
> *** 353,358 ****
> --- 353,362 ----
>     if (*r->hostname && (atoi(r->hostname) != r->server->port))
>       return;
> 
> +   if ((host[strlen(host)-1]) == '.') {
> +     host[strlen(host)-1] = '\0';
> +   }
> +
>     r->hostname = host;
> 
>     for (s = r->server->next; s; s = s->next) {
> 
> -- 
> ________________________________________________________________________
> Alexei Kosut <ak...@nueva.pvt.k12.ca.us>    
> URL: http://www.nueva.pvt.k12.ca.us/~akosut/  
> Lefler on IRC, DALnet <http://www.dal.net/>   
> 
> 

Re: This host crap

Posted by Alexei Kosut <ak...@nueva.pvt.k12.ca.us>.
On Mon, 29 Apr 1996, Dirk.vanGulik wrote:

> I am not very happy with this patch, elect6.jrc.it. is quite
> different (or can be quite different) from say elect6.jrc.it
> and elect6, and I'd like to either logs/use the *FULL* QHN, i.e.
> down to the last dot or the host names as they came in. It is
> just that that trailing dot means a lot and is a vital escape
> hatch if your searchpath or local DNS cache really fucks up.

Luckily, the patch in question has nothing to do with any of this,
because I agree with you. The patch in question only applies to the
handling of the Host: header when looking for virtual host
names. These should always be FQDN anyhow (although in practice
they're not), so the patch simply makes it, since the dot is a legal
representation of an FQDN, so that the user doesn't have to do
something like the following:

<VirtualHost www.foo.com>
ServerName www.foo.com
ServerAlias www.foo.com. *.foo.com *.foo.com. foo.bob.org foo.bob.org.
</VirtualHost>

Which would be a real pain in the neck.

-- 
________________________________________________________________________
Alexei Kosut <ak...@nueva.pvt.k12.ca.us>    
URL: http://www.nueva.pvt.k12.ca.us/~akosut/  
Lefler on IRC, DALnet <http://www.dal.net/>