Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Mar 2006 10:31:57 -0500
From:      Nathan Vidican <nvidican@wmptl.com>
To:        darryl@osborne-ind.com
Cc:        questions@freebsd.org
Subject:   Re: Apache config question
Message-ID:  <442AA86D.7080601@wmptl.com>
In-Reply-To: <002401c65344$b323fec0$0701a8c0@darryl>
References:  <002401c65344$b323fec0$0701a8c0@darryl>

next in thread | previous in thread | raw e-mail | index | archive | help
Darryl Hoar wrote:
> 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 ?
> 
> thanks,
> Darryl
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 
> 
First, and foremost - check the Apache error log, and make sure it's looking 
where you expect it to. You might find a line saying "File not found: 
/usr/some/where/you/didnot/expect/cgi-bin" ... next, check the permissions of 
the sub-dir you created in cgi-bin, and lastly, the permissions of the cgi-bin 
itself, both should be world read/executable.


-- 
Nathan Vidican
nvidican@wmptl.com
Windsor Match Plate & Tool Ltd.
http://www.wmptl.com/



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