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 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.3d73Ybk3C5U4I2t8lv+lAQ.user.gioia.aioe.org!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: AWS combined dispatcher Virtual host and URI Date: Mon, 20 Apr 2020 13:25:06 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <0edc4b64-ac90-463c-920a-3ff92a8be434@googlegroups.com> NNTP-Posting-Host: 3d73Ybk3C5U4I2t8lv+lAQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 X-Notice: Filtered by postfilter v. 0.9.2 Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:58431 Date: 2020-04-20T13:25:06+02:00 List-Id: On 2020-04-20 11:08, Per Jakobsen wrote: > søndag den 19. april 2020 kl. 21.55.42 UTC+2 skrev Dmitry A. Kazakov: >>> Wouldn't it be more logical to make a Virtual Host dispatcher that will also select on URI(-prefix)? >> >> Then I really do not understand the problem. It is a plain map path -> >> content. You can have as many aliases you want. > > I don't want to see Virtual hosts as aliases, but as distinct different hosts: "http://personal_domain/gallery" and "http://company_domain/gallery" should serve two different galleries. You mean you want to add the domain name to the map's key "gallery" in order to distinguish different contents? How this is supposed to work if both domain names are resolved to the same IP address and the client uses the address? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de