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 1658F200C22 for ; Tue, 21 Feb 2017 23:06:11 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 14E96160B4F; Tue, 21 Feb 2017 22:06: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 5DFFC160B68 for ; Tue, 21 Feb 2017 23:06:10 +0100 (CET) Received: (qmail 60717 invoked by uid 500); 21 Feb 2017 22:06:09 -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 60654 invoked by uid 99); 21 Feb 2017 22:06:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2017 22:06:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 8D67E1A7AFD for ; Tue, 21 Feb 2017 22:06:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.2 X-Spam-Level: * X-Spam-Status: No, score=1.2 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, NORMAL_HTTP_TO_IP=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ds2V7slcA2re for ; Tue, 21 Feb 2017 22:06:07 +0000 (UTC) Received: from mail-io0-f174.google.com (mail-io0-f174.google.com [209.85.223.174]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 17D7F5F56B for ; Tue, 21 Feb 2017 22:06:07 +0000 (UTC) Received: by mail-io0-f174.google.com with SMTP id l66so32225906ioi.1 for ; Tue, 21 Feb 2017 14:06:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=csOOQFsbnLiG/C9dj52tVrd0RDh0mCDCUc+QibvNf3c=; b=oEbB8GrJgp1T/gjN+E1mSEOKtgLyiu/xmubDdfF8siBCFyxPPnUY6AL/FlQA1WZFcC S98vdxnoCNb9lGE0o2/CbcaJmhZCrNh4nBeY7r4oGVQyNuC1rPWTbbJj49bOX2bxvaUz DvRw4bpycBfg7y4kOu0FAZgQKctgIOeI2++9ma7T2dhK9r5FwACpspxPD78ldeYgDDfG 3DEMpbzbesKOj/lIiVoaOS4LG3GBzW8U47GvGMhG7IFW3WDe5psYWiuNTpoiLGQpELCj +FTwnPEOZEJ6+MF/qnThuQ/k2SWztxxSBDRaVCySJtm2dE01WyX+Dfxi76NKkxO2+dtA Qrrw== 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=csOOQFsbnLiG/C9dj52tVrd0RDh0mCDCUc+QibvNf3c=; b=NVM7dznl7DU07jb8qacsXZpssHD/JhnOWSIopMPjWyKsTJz3QfvVak5RSAcDANPw3P vQY21I/AiAdW4CmCeOc1SSJhYGvZCBu/ISA4i2fo/yKkNxWNOwSXRHuUtaVPLzr2OA1c 8MDKkYxAvgM52A4bLWNzjMPNjk1S1IS2BaEyF4ERGuJ80XueklGubtq8+OqCku35DJji cb4SybStthcu0/SKBj8C1FSpwBH37lHz3sXWLWjyG2lZIQLw90TqCWfEMjvWq8xkRAci QPVRL1mRaF4pGpshQApUCNxpIdbeOjTmPVHNN93CnC5e+R1BchpCfeQbqwSfy04LR+ni ZQeQ== X-Gm-Message-State: AMke39kxh+bp0nnYgvXk0+CK9/NWXWGfFnzfzNotTAIzAYuwAe5bv8sq4OEbVl5Onee+sa3iJox5Ei9CNt82gA== X-Received: by 10.107.128.204 with SMTP id k73mr20822839ioi.188.1487714760464; Tue, 21 Feb 2017 14:06:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.201.130 with HTTP; Tue, 21 Feb 2017 14:05:59 -0800 (PST) Received: by 10.107.201.130 with HTTP; Tue, 21 Feb 2017 14:05:59 -0800 (PST) In-Reply-To: References: From: "Antonio S. Cofino" Date: Tue, 21 Feb 2017 22:05:59 +0000 Message-ID: Subject: Re: Strange URL rewrite when reverse proxy with Apache HTTP Server To: Tomcat Users List Content-Type: multipart/alternative; boundary=001a113f976ad31dcf05491195da archived-at: Tue, 21 Feb 2017 22:06:11 -0000 --001a113f976ad31dcf05491195da Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Aaron, on tomcat instances change the redirectPort attributte on the http conect=C3=B3 to the loabbalancer's port 443 My guess is that your webapp has restriction rule requesting SSL con fidntial channel. Therefore the non-confidential to the 18080 port from the balancer are redirected to the 23270 port, but it should be 443. Antonio El 21/2/2017 19:46, "Aaron Gray" escribi=C3=B3: I have an application server from a vendor that comes bundled with an additional Apache Tomcat server. The webapp SelfService.war is vendor supplied too. Here's my problem (IP's replaced to protect the innocent): networks: DMZ=3D172.x.x.x INTERNAL=3D10.x.x.x server1 https listen =3D 172.1.1.1:23270 server2 https listen =3D 172.1.1.2:23270 F5 load balancer hostname =3D loadbalancer.domain.com:443 backend tomcat server =3D 10.1.1.1:18080 mod_proxy configuration: ProxyPass /SelfService http://10.1.1.1:18080/SelfService ProxyPassReverse /SelfService http://10.1.1.1:18080/SelfService When I access these DMZ webservers which mod_proxy back to Apache Tomcat as= : https://172.1.1.1:23270/SelfService and https://172.1.1.2:23270/SelfService They load properly. Perfectly, every time! When I access these DMZ webservers via the F5 load balancer (to which I dont have access to, but the network folks configure for me), it hangs. Eventually returns: https://loadbalancer.domain.com:23270/SelfService cant load. No idea why the URL is being re-written with the ":23270". I added static content to the server.xml on 10.1.1.1 (Tomcat) to test: Then put a simple index.html in there. Accessing via the Apache Web Servers works fine, but if you hit it with the Load Balancer it once again adds the https://loadbalancer.domain.com:23270/static Do you have any thoughts? Thanks so much, I have been working with this for weeks now with no success --001a113f976ad31dcf05491195da--