From owner-freebsd-questions@FreeBSD.ORG Tue Oct 27 01:44:17 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 2BB27106566C for ; Tue, 27 Oct 2009 01:44:17 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.freebsd.org (Postfix) with ESMTP id CCF5C8FC14 for ; Tue, 27 Oct 2009 01:44:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id 7E8293A3948; Tue, 27 Oct 2009 08:44:15 +0700 (ICT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= references:subject:subject:in-reply-to:from:from:message-id:date :date:received:received:received; s=selector1; t=1256607855; x= 1258422255; bh=xdLokuWmYS+72FgdR46mqdg0jeCJqVKihOvBI1mAtxg=; b=K SzSZVTXRl2cgqILFVBOFidbxWuKOrcma1ajlzkLCQ89weAXu8eZHdvqwb9OZztKo rOWFpA0njEVd0cQ6eq9Qmfr3/FVQO1KYM12nNaFCfWgmxM3rPrIAMDuJfkGtXREu j2rUINYKXM/J2aJ4LIU2atskE3yvSGRrOv7ik30bic= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by localhost (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id v26mXGrlMlB1; Tue, 27 Oct 2009 08:44:15 +0700 (ICT) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id A54E53A3939; Tue, 27 Oct 2009 08:44:14 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.14.3/8.14.3/Submit) id n9R1iDAM037191; Tue, 27 Oct 2009 08:44:13 +0700 (ICT) (envelope-from on) Date: Tue, 27 Oct 2009 08:44:13 +0700 (ICT) Message-Id: <200910270144.n9R1iDAM037191@banyan.cs.ait.ac.th> From: Olivier Nicole To: alexbestms@math.uni-muenster.de In-reply-to: (message from Alexander Best on Tue, 27 Oct 2009 02:36:48 +0100 (CET)) References: Cc: freebsd-questions@FreeBSD.org 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 01:44:17 -0000 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