Date: Wed, 29 Mar 2006 10:29:07 -0600 From: "Darryl Hoar" <darryl@osborne-ind.com> To: <freebsd-questions@freebsd.org> Subject: RE: Apache config question Message-ID: <003001c6534d$e7654a00$0701a8c0@darryl> In-Reply-To: <20060329102216.P85238@bravo.pjkh.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Sorry for the top post but I don't want anyone wasting any more time on this. The problem was simple. Operator error. The script was in cscript folder. When I typed in the browser, I omitted the folder name ie http://servername/cgi-bin/myscript.cgi instead of the correct http://servername/cgi-bin/cscript/myscript.cgi Sorry for the wasted bandwidth. Must find more coffee. -----Original Message----- From: Philip Hallstrom [mailto:freebsd@philip.pjkh.com] Sent: Wednesday, March 29, 2006 10:23 AM To: Darryl Hoar Cc: freebsd-questions@freebsd.org Subject: Re: Apache config question > Greetings, > I have a Freebsd 6.0-Release system that I just > installed. I have installed Apache 1.3.33 from the > ports system. > > I can see the index.html file when I point my browser > to the server. What I can't do is : > > browse to : http://server/cgi-bin/cscripts/myscript.cgi > > I get a 404 Not found. > The requested URL /cgi-bin/myscript.cgi was not found > on this server. > > The file myscript.cgi is located in the /usr/local/www/cgi-bin > directory. I verified this. > > I have added: > <Directory "/usr/local/www/cgi-bin/cscripts"> > deny from all > Options ExecCGI > AllowOverride AuthConfig > Order deny,allow > </Directory> > > to the http.conf file. > I did /usr/local/sbin/apachectl stop > /usr/local/sbin/apachectl start. > > of course /usr/local/sbin/apachectl configtest says the config file is OK. > > What am I missing here ? deny from all. Unless I'm reading it wrong, you're denying access to that directory for everyone. There's no "allow from ..." statement. -philip
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003001c6534d$e7654a00$0701a8c0>