From owner-freebsd-questions@FreeBSD.ORG Tue Jan 25 10:07:53 2005 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 1D52C16A4CE for ; Tue, 25 Jan 2005 10:07:53 +0000 (GMT) Received: from mail.trueafrican.com (mail.trueafrican.com [212.88.98.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 698CB43D41 for ; Tue, 25 Jan 2005 10:07:51 +0000 (GMT) (envelope-from begj@trueafrican.com) Received: from mail.trueafrican.com ([127.0.0.1]) by localhost (mail.trueafrican.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 92103-10; Tue, 25 Jan 2005 13:07:43 +0300 (EAT) Received: by mail.trueafrican.com (Postfix, from userid 1001) id D190325F0EF; Tue, 25 Jan 2005 13:07:43 +0300 (EAT) Date: Tue, 25 Jan 2005 13:07:43 +0300 (EAT) From: Joseph Begumisa To: Gareth Bailey In-Reply-To: <48a5f32a05012501075d2ebef5@mail.gmail.com> Message-ID: <20050125130514.G95995@mail.trueafrican.com> References: <48a5f32a05012501075d2ebef5@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at trueafrican.com cc: freebsd-questions Subject: Re: A simple CGI question 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: Tue, 25 Jan 2005 10:07:53 -0000 normally it would be http://ppp.yyy.com/cgi-bin/cgi-scriptname however, it depends on your scriptalias setting in the httpd.conf file. to access it as above, you would have something like: ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/" AllowOverride None Options None Order allow,deny Allow from all Joseph. On Tue, 25 Jan 2005, Gareth Bailey wrote: > Hi there, > > I have what i think is a really simple question regarding cgi scripts. > I have an apache chpasswd cgi script that i want to make available so > that users can browse to the url and change their own passwords. > > If a cgi script is in my /usr/local/www/cgi-bin directory, what url > would i use to access the cgi from the web. Would i need to copy the > cgi into my data directory? - i tried this and the browser treated it > as a download. > > Please advise. > > Thanks! > _______________________________________________ > 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" >