Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 40255 invoked from network); 11 Jul 2007 15:30:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jul 2007 15:30:11 -0000 Received: (qmail 89206 invoked by uid 500); 11 Jul 2007 15:30:02 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 89184 invoked by uid 500); 11 Jul 2007 15:30:02 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 89173 invoked by uid 99); 11 Jul 2007 15:30:02 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2007 08:30:02 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of mark.stevens99@googlemail.com designates 209.85.146.178 as permitted sender) Received: from [209.85.146.178] (HELO wa-out-1112.google.com) (209.85.146.178) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2007 08:29:58 -0700 Received: by wa-out-1112.google.com with SMTP id k22so2001362waf for ; Wed, 11 Jul 2007 08:29:38 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NaaL79Hg7ECFr6ZmFWpqZkpIWNpZQUZ/UUYxxAXA54l3x4j+VZlFsUGSpW5ZfiVFfOL0Tr1/XMXsZtyXjTRMaKPHars6Df0hfx6Cm81q1V7C6gWFonnAr66m+05sRN3DBv3UNScDLLkzJN4qKlO8Lvexk0l+X0mwLK6xtffKsok= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PLVz2FDNS0wPRkOIFeUE0cw+ng43kj0wco06B/ZWLI+4bBt31NnTMpNoEmJo3V/0xgm39g1Vl7v2Ea3JWCJufsDAwU9O/grYDqW7IDjuC3LqpRLhfmbhyH0JWPpDoWwLaP8FizjDAVDXtaDdMW4Mtim5c+tAZzyViocQ6gZqhKs= Received: by 10.115.58.1 with SMTP id l1mr5215873wak.1184167777772; Wed, 11 Jul 2007 08:29:37 -0700 (PDT) Received: by 10.114.159.8 with HTTP; Wed, 11 Jul 2007 08:29:37 -0700 (PDT) Message-ID: <6368e94c0707110829o28752658u985f4ea22fc95f0a@mail.gmail.com> Date: Wed, 11 Jul 2007 16:29:37 +0100 From: "Mark Stevens" To: users@httpd.apache.org In-Reply-To: <3100.10.38.22.43.1184165740.squirrel@mail.tmorton.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3100.10.38.22.43.1184165740.squirrel@mail.tmorton.com> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] apache hostname resolution (strange problem) Hi, Sorry if I have the wrong end of the stick, but why don't you just do.... NameVirtualHost 10.37.74.24:80 in your httpd.conf and then set your virtualhost to that NameVirtualHost. ServerName www.myserver.com Again sorry if I've misunderstood your problem. Regards, Mark. On 11/07/07, Jeff Fulmer wrote: > >> -----Original Message----- > >> From: Jeff Fulmer [mailto:jeff@joedog.org] > >> Sent: Tuesday, July 10, 2007 2:56 PM > >> To: users@httpd.apache.org > >> Subject: [users@httpd] apache hostname resolution (strange problem) > >> > >> I have the oddest situation. I have a test server on the LAN. > >> I added a > >> host entry for www.myserver.com (actual name changed to protect the > >> innocent). I can ping www.myserver.com and my resolved > >> address matches the > >> host entry. Life is grand, no? > >> > >> /usr/sbin/ping www.myserver.com > >> PING www.myserver.com: 64 byte packets > >> 64 bytes from 10.37.74.24: icmp_seq=0. time=0. ms > >> > >> I have apache configured with a virtual host for > >> www.myserver.com. Watch > >> what happens when I check my virtual hosts with httpd -S. I > >> get the PUBLIC > >> internet address for www.myserver.com: > > > > What exactly is your problem? What address do you expect to get? > > > > Your posting is confusing because it's not clear whether your munged > > domain names are supposed to be internal LAN names or public domain > > names... > > > > I expect it to be 10.37.74.24. It can't bind a virtual host to an address > that's not on the server. Here's the output of httpd -S > > lccas243$ bin/httpd -S > VirtualHost configuration: > 64.157.185.199:80 www.myserver.com > (/usr/local/httpd/conf/vhosts/80_myserver.com:5) > wildcard NameVirtualHosts and _default_ servers: > *:443 is a NameVirtualHost > default server www.myserver.com > (/usr/local/httpd/conf/vhosts/443_myserver.com:4) > port 443 namevhost www.myserver.com > (/usr/local/httpd/conf/vhosts/443_myserver.com:4) > *:80 is a NameVirtualHost > > On the server itself, www.myserver.com resolves to 10.37.74.24 which is > the address I have in the /etc/hosts file. But apache is resolving it > based on it's DNS entry. It does this even when I turn DNS off! > > Jeff > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org