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 283E1189C4 for ; Sun, 3 Apr 2016 03:21:14 +0000 (UTC) Received: (qmail 48150 invoked by uid 500); 3 Apr 2016 03:21:10 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 47771 invoked by uid 500); 3 Apr 2016 03:21:09 -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 47760 invoked by uid 99); 3 Apr 2016 03:21:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Apr 2016 03:21:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6DD03180579 for ; Sun, 3 Apr 2016 03:21:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.102 X-Spam-Level: X-Spam-Status: No, score=-0.102 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=domblogger.net Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id mdmVwtahTx-E for ; Sun, 3 Apr 2016 03:21:07 +0000 (UTC) Received: from mail.domblogger.net (mail.domblogger.net [104.200.18.67]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id D3F6D5F23D for ; Sun, 3 Apr 2016 03:21:06 +0000 (UTC) Received: from localhost.localdomain (unknown [67.161.54.192]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.domblogger.net (Postfix) with ESMTPSA id 5BE41821 for ; Sun, 3 Apr 2016 03:20:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=domblogger.net; s=default; t=1459653658; bh=a1frdbi/OYZ4gz2h4BNTncHBA48gqrlZXCvLZkysgyQ=; h=Subject:To:References:From:Date:In-Reply-To; b=q2CwhJ7hw8GXbCg+CaSI4VkRa+ZYDNseonLjP8XNyKN08+jASUJxyaEHCAwhIla9G 96gwPBtcpn848kTX2vuXFFmyy+/ZMXEbsxKWrshkY56boAN3V0RcE3SMNaSku4IfbN B5GF+QcgwViQ109UtiYOYTCxgnG3pOVbKONel5U4= To: users@httpd.apache.org References: <724359639.15347.1459569655905.JavaMail.zimbra@wisenburg.com> From: "Michael A. Peters" Message-ID: <57008C18.5060201@domblogger.net> Date: Sat, 2 Apr 2016 20:20:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <724359639.15347.1459569655905.JavaMail.zimbra@wisenburg.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [users@httpd] Apache2 listening on 80(http) and 443(https) On 04/01/2016 09:00 PM, Brandon L. Wisenburg wrote: > Hi Everyone! > I have converted my website to SSL, and I go the virtual host setup and > SSL working in Apache. When someone uses http://domain.com they get a > connection refused, because of course the server isn't listening on 80, > as i have it setup for SSL (443) > > How would I make apache listen on http(80), but re-direct anyone that > hits http to https. > > Is it possible to have apache listen on both 80 and 443? > > Thanks, This is what I do - ServerName librelamp.com Redirect permanent / https://librelamp.com/ ServerName librelamp.com Redirect permanent / https://librelamp.com/ Seems to work very well. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org