Date: Sun, 3 Mar 2002 11:33:46 -0500 From: ScaryG <freymann@scaryg.shacknet.nu> To: <jonas@netwood.net> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 3 Mar 2002 01:56:23 -0800 "Jonas Fornander " <jonas@netwood.net> 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: > <Directory /usr/home/xxxx/public_html/cgi-bin> > Options +ExecCGI > </Directory> This looks good, except you don't need the (+) sign... just Options ExecCGI If you really want to use brute force, this will work: <Directory /usr/home/xxxx/public_html/cgi-bin> Options All AllowOverride All order allow,deny allow from all </Directory> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020303113346.017e965b.freymann>