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 05A01200CC7 for ; Sun, 16 Jul 2017 19:14:35 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0399816437A; Sun, 16 Jul 2017 17:14:35 +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 3CAAF16436D for ; Sun, 16 Jul 2017 19:14:34 +0200 (CEST) Received: (qmail 6904 invoked by uid 500); 16 Jul 2017 17:14:32 -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 6894 invoked by uid 99); 16 Jul 2017 17:14:32 -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, 16 Jul 2017 17:14:32 +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 3EDE7C0043 for ; Sun, 16 Jul 2017 17:14:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.901 X-Spam-Level: X-Spam-Status: No, score=-2.901 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Z75bXYAh0bE8 for ; Sun, 16 Jul 2017 17:14:31 +0000 (UTC) Received: from mail-wr0-f182.google.com (mail-wr0-f182.google.com [209.85.128.182]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id F27565F6C4 for ; Sun, 16 Jul 2017 17:14:30 +0000 (UTC) Received: by mail-wr0-f182.google.com with SMTP id v60so20492714wrc.3 for ; Sun, 16 Jul 2017 10:14:30 -0700 (PDT) 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=mrg732g7z9pdJWczqektLaYC2+wbqAYebkkZ61bIhPs=; b=ZJPjLUSrJdx6ti3mwXK5ow+nyoJEAvJ+4wI988gzyHoAnDpa6wuP6RJz1Q8J5onibG W/37+gOhkeXnUacMIKCTlK9BAuQ3BJpnznyGuVuPbXNvNyGJfODHBsvQF+wgKmpsP24l 1J8qHwDyupdNKUsBHzUVtWzXwypX5y0f9bXsesv1FllTwJtWkkYGq+ZtFm+3wt+dYFM+ JZmkRrhIZ5EwAcBo0sL0PHiUHZbQDPMaujbSUKHYKvPLAHo3KpRMfHUDT/bzOH1vouPP 8mFiGkKcQBrGI6wAqA0/Qy4mWe/GWVeZ8Aa5X4RuKpouR+/A6aQacVu/QYRtOiGsrRHA hYoQ== 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=mrg732g7z9pdJWczqektLaYC2+wbqAYebkkZ61bIhPs=; b=oTEJa8yKVFkoZEqJ6q+/gGE3Nz6DYgHWWw8CBkaI9tWPA2R7CDzK3nNBomqPWRzmDH XpCWCHUVZbZK9/pqxlcYxw0SA33ZyKbSzWmpkgW/vy/4eSaojoxRE0coG3ztRZ4Ich+D TrCcAjYgKZse45y5hX207a1n1agsbKDafllSTtSKhSWlgyOe4vKuYjdqMnaUTBnhupux hSyiAM7gWivlfTXGiAK7mfbPmymxEll6IGZGD5vrtDeJmOZS55OvNsddusAFq+lMzxZX eNxxFAQVf68EyH+Zg5hFQX2sioa3xZWAjz8ZkPCB4ZE0sTO4ivG/LGEbhFsO8BjbnmO+ 3lqg== X-Gm-Message-State: AIVw112I5eL0JjIswCYnX2yN23Il1lN9h4F73pPVHUyfzA93aNn0wSpT CD+KA26Kqbx8mNXO42tQdcNpO9vxGw== X-Received: by 10.223.166.139 with SMTP id t11mr11190166wrc.39.1500225269741; Sun, 16 Jul 2017 10:14:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.129.130 with HTTP; Sun, 16 Jul 2017 10:14:29 -0700 (PDT) In-Reply-To: References: From: David Mehler Date: Sun, 16 Jul 2017 13:14:29 -0400 Message-ID: To: users@httpd.apache.org Content-Type: text/plain; charset="UTF-8" Subject: Re: [users@httpd] virtual host double slash effect, need solution archived-at: Sun, 16 Jul 2017 17:14:35 -0000 Hello, Thanks. I'll try the rewrite redirect. With regards the redirect option, the simpler way, does it do the tls conversion unsecure to secure? What would the advantages/disadvantages of rewrite and redirect? Thanks. Dave. On 7/16/17, Daniel wrote: > And while at it why not use simple Redirect's since your config fits > perfectly to use them: > > > ServerName example.com > Redirect / http://www.example.com/ > > > simpler, gets the job done, and you don't need a cannon to smash a fly. > > > 2017-07-16 17:48 GMT+02:00 Luca Toscano : >> Hi David, >> >> 2017-07-15 3:11 GMT+02:00 David Mehler : >>> >>> Hello, >>> >>> I'm running Apache 2.4 on a FreeBSD 10.3 system, with several virtual >>> hosts. My goal is to have all of them completely ssl, except for the >>> .well-known area needed for letsencrypt. >>> >>> >>> ServerName example.com >>> RewriteEngine On >>> RewriteRule ^/?(.*) http://www.example.com$1 [R,L] >>> # This line also produces the double slash effect >>> # RewriteRule ^/?(.*) http://www.example.com/$1 [R,L] >>> >>> >> >> Have you tried with RewriteRule ^(.*)$ https://www.example.com$1 [R=301,L] >> ? >> (note also the https, IIUC you need to force TLS). >> >> Hope that helps, >> >> Luca >> > > > > -- > Daniel Ferradal > IT Specialist > > email dferradal at gmail.com > linkedin es.linkedin.com/in/danielferradal > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org