From owner-freebsd-questions Sun Mar 3 8:32:51 2002 Delivered-To: freebsd-questions@freebsd.org Received: from tomts22-srv.bellnexxia.net (tomts22.bellnexxia.net [209.226.175.184]) by hub.freebsd.org (Postfix) with ESMTP id 6CAEF37B404 for ; Sun, 3 Mar 2002 08:32:48 -0800 (PST) Received: from scaryg.shacknet.nu ([64.231.135.247]) by tomts22-srv.bellnexxia.net (InterMail vM.4.01.03.23 201-229-121-123-20010418) with ESMTP id <20020303163340.DBYO8055.tomts22-srv.bellnexxia.net@scaryg.shacknet.nu>; Sun, 3 Mar 2002 11:33:40 -0500 Received: from localhost ([::1] helo=scaryg.shacknet.nu) by scaryg.shacknet.nu with smtp (Exim 3.34 #1) id 16hYvi-000DTQ-00; Sun, 03 Mar 2002 11:33:46 -0500 Date: Sun, 3 Mar 2002 11:33:46 -0500 From: ScaryG To: Cc: questions@FreeBSD.ORG Subject: Re: Need help with configuring cgi-bin Message-Id: <20020303113346.017e965b.freymann@scaryg.shacknet.nu> In-Reply-To: <200203030156.AA385417454@netwood.net> References: <200203030156.AA385417454@netwood.net> X-Mailer: Sylpheed version 0.7.2 (GTK+ 1.2.10; i386-portbld-freebsd4.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-MailScanner: Found to be clean Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 3 Mar 2002 01:56:23 -0800 "Jonas Fornander " wrote: > I wonder if someone could give me some hints on how to properly > configure Apache to enable a cgi-bin in users directory. I may be able to offer you a few more pointers... > Scripts runs fine in the default ScriptAlias directory. According to the > documentation at apache.org, I need to enable > Addhandler cgi-script cgi (eventhou in httpd.conf it reads Addhandler > cgi-script .cgi) The proper syntax is: AddHandler cgi-script .cgi If you would like it to execute both .cgi and .pl files, change this to: AddHandler cgi-script .cgi .pl Don't forget to restart Apache after you make changes to your httpd.conf file /usr/local/apache/bin/apachectl restart for example. (very, very important!) > and add a directory directive to the main configuration > file where the scripts are. So I added: > > Options +ExecCGI > This looks good, except you don't need the (+) sign... just Options ExecCGI If you really want to use brute force, this will work: Options All AllowOverride All order allow,deny allow from all You may want to try this, restart apache, test. If it works, then change the Options line from Options All to Options ExecCGI. Restart apache, test again. Good luck! Gerry- Web/Domain Hosting --- Primary/Secondary DNS Services at http://www.interpool.ca To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message