Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 26025 invoked by uid 500); 7 Apr 2003 20:32:24 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 26012 invoked from network); 7 Apr 2003 20:32:23 -0000 Received: from imo-r01.mx.aol.com (152.163.225.97) by daedalus.apache.org with SMTP; 7 Apr 2003 20:32:23 -0000 Received: from gjmwalsh@netscape.net by imo-r01.mx.aol.com (mail_out_v34.21.) id e.2.7f0c409 (16238) for ; Mon, 7 Apr 2003 16:32:18 -0400 (EDT) Received: from netscape.net (mow-m22.webmail.aol.com [64.12.180.138]) by air-in03.mx.aol.com (v92.17) with ESMTP id MAILININ32-3f6e3e91e052c2; Mon, 07 Apr 2003 16:32:18 -0500 Date: Mon, 07 Apr 2003 16:32:18 -0400 From: gjmwalsh@netscape.net (George Walsh) To: users@httpd.apache.org MIME-Version: 1.0 Message-ID: <637CC8E3.71A8E491.009AA07D@netscape.net> X-Mailer: Atlas Mailer 2.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] Relating URL name to Document Root Thanks for being so patient with me on this. I've inserted my responses, item by item. >On Sat, 2003-04-05 at 19:30, George Walsh wrote: >> In the past I have been able to accomplish this without difficulty. Now, in the ADVX version of Apache 2.0.44, I have encountered a brick wall. >> >> I have 2 urls pointing to the same IP on the external net. > > OK. 1 external IP address known to the world. Correct! > >> >> I have 2 ip aliases assigned for these on the localhost. > > How are you going to map from 1 ip address to 2 internally? In my naivety I assumed that when incoming traffic was directed (forwarded) to the main host, that it would be passed through dns to resolve the url into the local ip number and therefore trigger the virtual host container. From what you say, this cannot happen. > >> >> Each has a Virtual Host entry (by number), along with servername, documentroot etc. > > Sounds like IP-based VirtualHosts. Yes, because I eventually need ssl and all I've read says that is not an option with name-based VirtualHosts. > >> >> On the localhost everything works perfectly. >> > Makes sense. > >> Dig and nslookup -sil return the expected data, and sendmail works fine as >> well. > > OK. But maybe unimportant. > I just wanted to rule out dns as any part of my problem. >> >> The problem is with requests from the external net. No matter which of the 2 >> urls is referenced, the page returned is the default page from the default >> (main) server. > > Comes back to 'how to map from 1 external address to 2 internal ones'. > Unless you have a http-proxy between the outside and the inside, I > don't see this as possible. > So, I have to read-up on and implement Squid to accomplish this? >> >> It seems to me that Apache needs to lookup the url in dns and then read the >> VirtualHost Container. Obviously, it isn't doing that. > > What 'url'? The one handed in from your router/firewall? Seems I > remember some discussion re: a linksys router. IIRC, they do > port-forwarding, not NAT'ing. So both 'urls' are being forwarded to > a single IP address inside. > Maybe more confusion on my part. I only know that anything coming in to the registered url is forwarded to the main server. > Suggestion would be to use Name-based VirtualHosts. Both hosts on the > same internal IP address, but with different server names. > I'd agree - much simpler all in all and more straightforward to document, but it just won't cut the mustard with ssl. > I guess its time to dig into proxy serving if I want to make this work. In the meantime, and again, thanks for riding this out with me. At least I have a place to start out now! Thanks! > > >> > > > >--------------------------------------------------------------------- >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 > > -- George Walsh, Managing Director, CruiseRoutes Division, DSC Directional Services Corp Courtenay, British Columbia, Canada __________________________________________________________________ Try AOL and get 1045 hours FREE for 45 days! http://free.aol.com/tryaolfree/index.adp?375380 Get AOL Instant Messenger 5.1 for FREE! Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 --------------------------------------------------------------------- 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