Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Feb 2000 07:23:35 -0800 (PST)
From:      Bhishan Hemrajani <bhishan@cytosine.dhs.org>
To:        mark <mark@itsunix.uwc.ac.za>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Apache and CGI
Message-ID:  <200002291523.HAA11848@cytosine.dhs.org>
In-Reply-To: <0002291127260U.08545@itsunix.uwc.ac.za> from mark at "Feb 29, 2000 11:22:14 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002291523.HAA11848>