From owner-freebsd-ports Mon Sep 15 08:38:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA04655 for ports-outgoing; Mon, 15 Sep 1997 08:38:16 -0700 (PDT) Received: from scanner.worldgate.com (scanner.worldgate.com [198.161.84.3]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA04649 for ; Mon, 15 Sep 1997 08:38:13 -0700 (PDT) Received: from znep.com (uucp@localhost) by scanner.worldgate.com (8.8.7/8.8.7) with UUCP id JAA22062; Mon, 15 Sep 1997 09:38:03 -0600 (MDT) Received: from localhost (marcs@localhost) by alive.znep.com (8.7.5/8.7.3) with SMTP id JAA26114; Mon, 15 Sep 1997 09:37:32 -0600 (MDT) Date: Mon, 15 Sep 1997 09:37:31 -0600 (MDT) From: Marc Slemko To: Joerg Wunsch cc: ports@FreeBSD.ORG Subject: Re: Apache question In-Reply-To: <19970915112714.OM05598@ida.interface-business.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, 15 Sep 1997, J Wunsch wrote: > Well, off-topic here, but i think there are a number of people here > using Apache. Why do i get the following? You are trying to access a directory without a trailing '/'. Because the object you request doesn't exist, Apache can't send it to you. It can, however, be nice and tell you what you are really looking for. To do that it has to send a redirect. To send a redirect, it needs to include a full URL with host. Since it doesn't know what hostname you were using, it has to guess. Its guess is based on either the ServerName directive (if set) or the reverse lookup of various interfaces. If you want each interface to have a different ServerName, you need to make a virtual host for each IP and then put the appropriate ServerName the VirtualHost section. Oh, and I should add my standard don't use 1.2b6 use 1.2.4. > > uriah # telnet localhost http > Trying 127.0.0.1... > Connected to localhost.heep.sax.de. > Escape character is '^]'. > GET /j HTTP/1.0 > > HTTP/1.1 302 Moved Temporarily > Date: Mon, 15 Sep 1997 09:24:31 GMT > Server: Apache/1.2b6 > Connection: close > Location: http://uriah.heep.sax.de/j/ > Content-type: text/html > > 302 Moved Temporarily >

Moved Temporarily

> The document has moved here.

> > Connection closed by foreign host. > > The problem is that uriah.heep.sax.de is multi-homed, and i was trying > to access it as uriah.interface-business.de. Of course, i do want to > use *this* connection then, and i absolutely dislike the idea of the > request being redirected. > > What am i doing wrong? > > -- > J"org Wunsch Unix support engineer > joerg_wunsch@interface-business.de http://www.interface-business.de/~j >