From nobody Sat Dec 21 12:14:22 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of ovirt.org designates 66.187.230.42 as permitted sender) client-ip=66.187.230.42; envelope-from=kimchi-devel-bounces@ovirt.org; helo=lists.ovirt.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of ovirt.org designates 66.187.230.42 as permitted sender) smtp.mailfrom=kimchi-devel-bounces@ovirt.org; Return-Path: Received: from lists.ovirt.org (lists.phx.ovirt.org [66.187.230.42]) by mx.zohomail.com with SMTPS id 1497600230683623.2433267746349; Fri, 16 Jun 2017 01:03:50 -0700 (PDT) Received: from lists.phx.ovirt.org (localhost [127.0.0.1]) by lists.ovirt.org (Postfix) with ESMTP id B4EA9820703; Fri, 16 Jun 2017 08:03:47 +0000 (UTC) Received: from smtp.nue.novell.com (smtp.nue.novell.com [195.135.221.5]) by lists.ovirt.org (Postfix) with ESMTPS id 7AB298206EA for ; Fri, 16 Jun 2017 08:03:45 +0000 (UTC) Received: from laptop.vms (mhy71-2-88-167-63-197.fbx.proxad.net [88.167.63.197]) by smtp.nue.novell.com with ESMTP (TLS encrypted); Fri, 16 Jun 2017 10:03:43 +0200 X-Original-To: kimchi-devel@ovirt.org From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= To: kimchi-devel@ovirt.org Date: Fri, 16 Jun 2017 10:03:39 +0200 Message-Id: <20170616080339.7256-1-cbosdonnat@suse.com> X-Mailer: git-send-email 2.12.2 Subject: [Kimchi-devel] [PATCH] apache: Fix HTTP to HTTPS redirection X-BeenThere: kimchi-devel@ovirt.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: kimchi-devel-bounces@ovirt.org Errors-To: kimchi-devel-bounces@ovirt.org X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" With the previous rewrite rule, the client is redirected to https://localhost:8001. Use %{SERVER_NAME} instead of localhost to keep the host name in the redirected URL. --- contrib/wok.conf.apache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/wok.conf.apache b/contrib/wok.conf.apache index c7e650ee..b4093ec7 100644 --- a/contrib/wok.conf.apache +++ b/contrib/wok.conf.apache @@ -30,5 +30,5 @@ Listen 8000 TransferLog /var/log/apache2/access_log =20 RewriteEngine On - RewriteRule ^/(.*)$ https://localhost:8001/$1 [R] + RewriteRule ^/(.*)$ https://%{SERVER_NAME}:8001/$1 [R] --=20 2.12.2 _______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel