From owner-freebsd-questions Tue Feb 29 7:24:30 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cytosine.dhs.org (cx272244-a.orng1.occa.home.com [24.1.177.149]) by hub.freebsd.org (Postfix) with ESMTP id 2D14137BBAB for ; Tue, 29 Feb 2000 07:24:28 -0800 (PST) (envelope-from bhishan@cytosine.dhs.org) Received: (from bhishan@localhost) by cytosine.dhs.org (8.9.3/8.9.3) id HAA11848; Tue, 29 Feb 2000 07:23:36 -0800 (PST) (envelope-from bhishan) From: Bhishan Hemrajani Message-Id: <200002291523.HAA11848@cytosine.dhs.org> Subject: Re: Apache and CGI In-Reply-To: <0002291127260U.08545@itsunix.uwc.ac.za> from mark at "Feb 29, 2000 11:22:14 am" To: mark Date: Tue, 29 Feb 2000 07:23:35 -0800 (PST) Cc: freebsd-questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You should have looked at the apache documentation for this. Edit httpd.conf in /usr/local/apache/conf Change your document root line to this: DocumentRoot /usr/local/apache/htdocs/cgi-bin And, edit .htaccess in cgi-bin, put this line in it: DirectoryIndex life.cgi --bhishan > > Hi there ....... > > I stuggling with the pointer for my web server. > > I have a script called life.cgi in my cgi-bin dir'. > To start it I have to type in the path it (http://myserver.co.za/cgi-bin/life.cgi). > When I do this it works fine. > If I type in http://myserver.co.za it brings up the index,html page of apache. > > But how do I only type in the http://myserver.co.za to bring up that page. > I have checked on the net and through the config pages, but no luck. > I have also tried symbolic links etc .... > > You'll have to forgive me if this is a dump question .... as I am pretty new > to unix. > > Thanking you > Mark > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message