From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:ac8:4e86:: with SMTP id 6mr5946248qtp.37.1587412754125; Mon, 20 Apr 2020 12:59:14 -0700 (PDT) X-Received: by 2002:aca:1e10:: with SMTP id m16mr784534oic.84.1587412753870; Mon, 20 Apr 2020 12:59:13 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 20 Apr 2020 12:59:13 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=193.235.229.50; posting-account=9DmjiwoAAAD-KD7MAll0qPzDsSqXm2Qs NNTP-Posting-Host: 193.235.229.50 References: <0edc4b64-ac90-463c-920a-3ff92a8be434@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1152214b-e510-4368-93fe-47e5f82e0323@googlegroups.com> Subject: Re: AWS combined dispatcher Virtual host and URI From: Per Jakobsen Injection-Date: Mon, 20 Apr 2020 19:59:14 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:58436 Date: 2020-04-20T12:59:13-07:00 List-Id: mandag den 20. april 2020 kl. 18.09.02 UTC+2 skrev J-P. Rosen: > > The host header is meant to serve as an alias, but there is no guarantee > > it would work, only if the client cooperates. > > Virtual hosts are several logical hosts served by the same physical > server. Therefore, by definition, there is no way to distinguish if the > user provides just the IP address. > > But this is a red herring. If you give your visitor a URL that works, > and the visitor tries something else and it doesn't work, well... too > bad for him. That was my thought, or if the host header is not given, fall back to one of the other galleries, or even an entirely different one. ~Per