From owner-freebsd-questions@FreeBSD.ORG Tue Oct 27 04:26:42 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 79AED106566B for ; Tue, 27 Oct 2009 04:26:42 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-yw0-f178.google.com (mail-yw0-f178.google.com [209.85.211.178]) by mx1.freebsd.org (Postfix) with ESMTP id E6FB48FC0A for ; Tue, 27 Oct 2009 04:26:41 +0000 (UTC) Received: by ywh8 with SMTP id 8so10539352ywh.3 for ; Mon, 26 Oct 2009 21:26:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:in-reply-to:message-id:references:user-agent :x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; bh=fSIL74E079/+iWUGZR9MfamCrnuroGz7dMILj3i47kQ=; b=VmF4FKK5BkBLFxCBEUXURym+h0yCJWRtShX3eI7FcVI2boZUrXXX4PaVCkr6rSL0Hr MNFLhLdvqgKT5sCv1AHGz/vc71Mczk0bMiOfKOXPG17ZCo+Nl6zXkSCiGNZYnPbc2yAu t+iaYwWHP+cGLpDcXpPhBYzVa6YE9xtidSbaA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=rxneqXroWDNf9pR3IinhJ7u42N3Xixs8rjnDierAhonU0910rdt+kQQry/sputUMMF UGsdBuHfEEhKPntMoFA0mqkA3rFljBoWuIclS0lq6O3k1OUmtU4uCnJm8ufYVicU568F VuzZquCvI/uJxBKgHCtIT/57/hJIj3dopEXMU= Received: by 10.150.56.1 with SMTP id e1mr234374yba.225.1256617600759; Mon, 26 Oct 2009 21:26:40 -0700 (PDT) Received: from ppp-21.195.dialinfree.com (ppp-21.195.dialinfree.com [209.172.21.195]) by mx.google.com with ESMTPS id 5sm1327620ywd.23.2009.10.26.21.26.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 26 Oct 2009 21:26:39 -0700 (PDT) Sender: "J. Hellenthal" Date: Tue, 27 Oct 2009 00:26:30 -0400 From: jhell To: Alexander Best In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Olivier Nicole , 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 04:26:42 -0000 On Mon, 26 Oct 2009 22:29, alexbestms@ wrote: > 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Add some shell aliases to your shells rc's. Bourne style shells: alias your_name="lynx https://sub.domain.tld/" Ill leave the c style shell syntax for you to figure out. Now as long as you can remember your_name then you shouldn't have to much of a problem. ;) Best regards, PC Pro Sch00lz -- ;; dataix.net!jhell 2048R/89D8547E 2009-09-30 ;; BSD since FreeBSD 4.2 Linux since Slackware 2.1 ;; 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E