From owner-freebsd-questions@FreeBSD.ORG Tue Oct 27 02:29:15 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E91B9106566B for ; Tue, 27 Oct 2009 02:29:15 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-exrelay1.uni-muenster.de (ZIVM-EXRELAY1.UNI-MUENSTER.DE [128.176.192.14]) by mx1.freebsd.org (Postfix) with ESMTP id 7E1018FC08 for ; Tue, 27 Oct 2009 02:29:15 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.44,629,1249250400"; d="scan'208";a="286570007" Received: from zivmaildisp1.uni-muenster.de (HELO ZIVMAILUSER01.UNI-MUENSTER.DE) ([128.176.188.85]) by zivm-relay1.uni-muenster.de with ESMTP; 27 Oct 2009 03:29:13 +0100 Received: by ZIVMAILUSER01.UNI-MUENSTER.DE (Postfix, from userid 149459) id D4D051B0766; Tue, 27 Oct 2009 03:29:13 +0100 (CET) Date: Tue, 27 Oct 2009 03:29:13 +0100 (CET) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Olivier Nicole , Message-ID: In-Reply-To: <200910270144.n9R1iDAM037191@banyan.cs.ait.ac.th> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@FreeBSD.org, Steve Bertrand Subject: Re: howto use https in favour of http X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2009 02:29:16 -0000 Olivier Nicole schrieb am 2009-10-27: > Hi, > > i've added the following line to my /etc/hosts: > > permail.uni-muenster.de:25 permail.uni-muenster.de:443 > > so what i want is for freebsd to never use http, but https for that > > address. > > unfortunately hosts doesn't seem to support this syntax. > De3finitely not. man hosts to see the syntax and meaning of the > /etc/hosts file. > > any advice on how to do this? > I am not sure what you want to do. You want to install a web server > that only serves https? then you configure your web server to only > serve https, in Apache configuration you would only have a > > and none with port 80. > Best regards, > Olivier sorry if i didn't specify my problem in detail. i'm not using a webserver or anything. i'm just a regular user. the point is: i often forget to specify https://... for that specific address in apps like lynx or firefox. that's why the non-ssl version of that site is being loaded. i'd like freebsd to take care of this so even if the app is trying to access the non-ssl version it should in fact be redirected to the ssl version by freebsd. cheers. alex