From owner-freebsd-questions@FreeBSD.ORG Wed Mar 3 06:37:10 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0576E16A4CE for ; Wed, 3 Mar 2004 06:37:10 -0800 (PST) Received: from dyer.circlesquared.com (host217-45-219-83.in-addr.btopenworld.com [217.45.219.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7E3843D1F for ; Wed, 3 Mar 2004 06:37:04 -0800 (PST) (envelope-from peter@circlesquared.com) Received: from circlesquared.com (localhost.petanna.net [127.0.0.1]) i23Ec81J053700; Wed, 3 Mar 2004 14:38:19 GMT (envelope-from peter@circlesquared.com) Message-ID: <4045EDD0.9000005@circlesquared.com> Date: Wed, 03 Mar 2004 14:38:08 +0000 From: Peter Risdon User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5b) Gecko/20031102 X-Accept-Language: en-us, en MIME-Version: 1.0 To: fbsd_user@a1poweruser.com References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: "freebsd-questions@FreeBSD. ORG" Subject: Re: downloading text files from apache X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2004 14:37:10 -0000 fbsd_user wrote: >>From my web page I link to .zip, .tgz, and .exe files and when the >link >is clicked, apache will open window to download the file. > >When I link to an .txt file it gets opened and displayed. I want to >have it open for download like the other files. > >Is there some config option in httpd.conf that I have missed? > > To understand the issue, read the man page for mime.types(5), and look at /usr/local/etc/apache/mime.types Text files are meant to be displayed like that. Easiest answer is to compress them and offer the compressed version for download. PWR.