Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BCB2C19976 for ; Thu, 10 Mar 2016 00:18:22 +0000 (UTC) Received: (qmail 64164 invoked by uid 500); 10 Mar 2016 00:18:19 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 64123 invoked by uid 500); 10 Mar 2016 00:18:18 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 64113 invoked by uid 99); 10 Mar 2016 00:18:18 -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; Thu, 10 Mar 2016 00:18:18 +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 A83E4C0EC3 for ; Thu, 10 Mar 2016 00:18:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.43 X-Spam-Level: X-Spam-Status: No, score=-0.43 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.329, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=geeq.de Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id FiA2ksEUZVZF for ; Thu, 10 Mar 2016 00:18:15 +0000 (UTC) Received: from lando.geeq.de (lando.geeq.de [78.47.168.99]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4C0185FACD for ; Thu, 10 Mar 2016 00:18:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by lando.geeq.de (Postfix) with ESMTP id CBDA380103 for ; Thu, 10 Mar 2016 01:18:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=geeq.de; h= content-type:content-type:in-reply-to:mime-version:user-agent :date:date:message-id:from:from:references:to:subject:subject; s=dkim; t=1457569086; x=1458433087; bh=1ACSQRoWOJIvsF5bB0PjvuMX rVlBfioQ93GLOQT2OHc=; b=YUvg1XkPZFFfNT0vHbxLvfLNY6PofwpBLYnMg4RM SLGV4xacynljk+f7o4cNyZ+Jmkxdt6vDfq708YyjnZwXcaz826zLudrWwlbA7XDO 3SUioFwcqZX6yeZy8QD/bMaePiVf3RDaX7WLL2gf1tunN4C4oeVq+JeccgCIHYz0 RTI= X-Virus-Scanned: Debian amavisd-new at lando.geeq.de Received: from lando.geeq.de ([127.0.0.1]) by localhost (lando.geeq.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J0xWj1KDi-Ut for ; Thu, 10 Mar 2016 01:18:06 +0100 (CET) Received: from [192.168.0.2] (x5d862772.dyn.telefonica.de [93.134.39.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lando.geeq.de (Postfix) with ESMTPSA id 1BA7A800FB for ; Thu, 10 Mar 2016 01:18:06 +0100 (CET) To: users@httpd.apache.org References: <56E05903.9030309@geeq.de> From: Sven Seeberg X-Enigmail-Draft-Status: N1110 Message-ID: <56E0BD3D.3030005@geeq.de> Date: Thu, 10 Mar 2016 01:18:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56E05903.9030309@geeq.de> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hk7T3blDUempvpUuFvuRxtf3tNR2PSUiQ" Subject: Re: [users@httpd] mod_substitute / mod_sed with Apache 2.4.7 (Ubuntu 14.04) --hk7T3blDUempvpUuFvuRxtf3tNR2PSUiQ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable mod_deflate still running on the backend server (I thought I had disabled it) and a missing AddOutputFilterByType were responsible. Problem solved. Am 09.03.2016 um 18:10 schrieb Sven Seeberg: > Hi everybody, > > I'm having a problem with mod_substitute or mod_sed while using one > apache2 (Ubuntu 14.04) as a proxy and load balancer. > > The connection between proxy and backend is not encrypted, therefore th= e > backend delivers only non-https links with the backend FQDN. Those have= > to be replaced by the corresponding proxy FQDN. > > On the documentation page > (https://httpd.apache.org/docs/2.4/mod/mod_substitute.htm) is an exampl= e > for this specific use case. However it does not work for me and I canno= t > find the reason. mod_deflate is not enabled. > > For testing purposes I created an index.html with the content "asdf" in= > the DocumentRoot. The content is also not replaced. Can anyone give me = a > hint on how to further debug this problem? Could this problem be > specific for the Ubuntu package / dependent on a compiling parameter? > > ### site config ### > > > ServerName www.somedomain.tld > DocumentRoot /var/www/redirect > > SSLEngine On > SSLCertificateFile /etc/letsencrypt/live/somedomain.tld/cert.pe= m > SSLCertificateChainFile > /etc/letsencrypt/live/somedomain.tld/chain.pem > SSLCertificateKeyFile > /etc/letsencrypt/live/somedomain.tld/privkey.pem > > ProxyPass /wordpress_test/ > http://backend.somedomain.tld/wordpress_test/ > ProxyPassReverse /wordpress_test/ > http://backend.somedomain.tld/wordpress_test/ > > > Substitute > "s|http://backend.somedomain.tld/|https://www.somedomain.tld/|i" > Substitute "s|asdf|jkl|i" > Substitute > "s|http://backend.somedomain.tld/|https://www.somedomain.tld/|" > > > > > ### end site config ### > > Cheers > Sven > > --hk7T3blDUempvpUuFvuRxtf3tNR2PSUiQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAEBAgAGBQJW4L09AAoJEClVndWoOAa100MH/iF2PH/Hv7KmS2JGf0VKPk5v pPJX0Qn3Ta9YNcyP8Hu5ak+JUdid42yQvbAe0YYC/ZaqUyPRzUf+8iFztSMvZZWT tOPmLXcIb06XZN+Mhw5g9Hq7esbs9LVFVqImOOV2VQGq2Zx9EuvDwz0Hn3PhjhOH N6zkSDzoyshCAKPdZWChwKVIhyH8xmAhXeGJbX/jG7NvNzuMTN17D68hlCwd83rU v5KX+WgxwNSeKOJHuI3NZuy/0Jn/RYfcdztcMpdiuppaYTMIkJ1o+6GbL4gU8XZy yAxCFlodBn5j5l/ZJBWKmw7U/jWM8BRIuZf+0367r8bI2P1TLo8W6hSU+qmjP0E= =G7cz -----END PGP SIGNATURE----- --hk7T3blDUempvpUuFvuRxtf3tNR2PSUiQ--