Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 63982200C2E for ; Sun, 5 Mar 2017 19:45:11 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 62253160B6B; Sun, 5 Mar 2017 18:45:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AC204160B57 for ; Sun, 5 Mar 2017 19:45:10 +0100 (CET) Received: (qmail 45689 invoked by uid 500); 5 Mar 2017 18:45:08 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 45678 invoked by uid 99); 5 Mar 2017 18:45:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Mar 2017 18:45:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 4EB57C191B for ; Sun, 5 Mar 2017 18:45:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=bluejeansnet.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 40yba9gf-UFM for ; Sun, 5 Mar 2017 18:45:05 +0000 (UTC) Received: from mail-ua0-f169.google.com (mail-ua0-f169.google.com [209.85.217.169]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 3B58A5F36B for ; Sun, 5 Mar 2017 18:45:05 +0000 (UTC) Received: by mail-ua0-f169.google.com with SMTP id q7so112428497uaf.2 for ; Sun, 05 Mar 2017 10:45:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bluejeansnet.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=xIk6XNavgeQsApICJe4fZTF7yLWTCfYtofcQ8yF8Rfw=; b=YDJ6dAF7ykarNFImdZjMydQztF/mKXv8RrBK7RG1LDHL9UrGabfBc5bEkoN8OUaLIK 7vItSrZptUyAHK5jdryL02B8C3bkIN8VXdLx0gvQOj3pHJL9lECm2H76t/t8Aizb3CIO FMkePl0ArWx/C5YjTxg4SljBT/iGjagbqZSG19BxwsCMu2tjKfefUvK3hlqF9clDazB8 aDox5uismNVri+VCfZKAWWu5fBj0AWrXFWv812sdGENdDmpLWVvJW7dQneyZgu5CcMVS Mj/OqdFdO81Q0JtZXfEPFmTxg6kIlSA/I/ROq/pdRDqx93lNYTBq/fdu7QRN2AmGXRwx ACHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=xIk6XNavgeQsApICJe4fZTF7yLWTCfYtofcQ8yF8Rfw=; b=Ng6umnLmS5wsy76IZobtmHrLGxkMgxLBKTD/09eqBqLqy9cnuN8ARqndxySRnECII4 AidQi8pSTLguP+GSicWVeTv2GygvNgL5nNeK8LzHFvDYAFm+2KBNkMQhUmVJiGB7Qrp1 LTdz9o5PwM9HJMfo3I15HQW6m81mbgyE7KEUyMKnAbGRaGtevVK43sB66ZcXcr3xFMVo yJX677/NAoowQ5PY8lGBxIvGALZlUtPw1CzIyybvZNURtbkL4wMlniXWUaHRxumkKREb IprK7n3Or2C/LDSAHepeOH7ya2vshak75rRRjqSWaYG/1/J2J9LTaVoIR0w0cRLVFXg5 shOQ== X-Gm-Message-State: AMke39nQq57wSjyQJT/H75l0/i/fpuSZadjSUOAsislUxPuLXgWVydSML6xig1X72I3PF/1Gv1Bk3oY3sSu1TsqV X-Received: by 10.31.56.69 with SMTP id f66mr2961997vka.47.1488739033406; Sun, 05 Mar 2017 10:37:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.0.3 with HTTP; Sun, 5 Mar 2017 10:37:12 -0800 (PST) In-Reply-To: <86fff4d4-9195-53cf-65d6-f006c2b8f892@apache.org> References: <86fff4d4-9195-53cf-65d6-f006c2b8f892@apache.org> From: Nick Johnson Date: Sun, 5 Mar 2017 10:37:12 -0800 Message-ID: Subject: Re: Handling wildcard domains in Tomcat 8.0 To: Tomcat Users List Content-Type: multipart/alternative; boundary=001a1143f0ec40079a054a0011df archived-at: Sun, 05 Mar 2017 18:45:11 -0000 --001a1143f0ec40079a054a0011df Content-Type: text/plain; charset=UTF-8 On Mar 5, 2017 9:50 AM, "Mark Thomas" wrote: On 04/03/17 04:33, Nick Johnson wrote: > Greetings, > > I have observed that with the default configuration where the name > is 'localhost', Tomcat will change the Host and X-Forwarded-Host headers to > the IP address of the local machine. That is not correct. Tomcat makes no changes to the Host or X-Forwarded-Host header it receives in the default configuration. Are there any configuration modifications that could cause this behavior to manifest? Running nc or tcpdump on the command line, I see the correct Host and X-Forwarded-Host headers arriving for Tomcat, but from my application, the Host header and X-Forwarded-Host header both contain the IP address of the local machine. Using the same war file in a different container (Jetty), I do not observe this behavior. I also do not observe this behavior if the Host header matches either the name or an name. Nick --001a1143f0ec40079a054a0011df--