<HTML>
<HEAD>
<TITLE>Re: [CLUE-Tech] debian-apache-cgi-bin</TITLE>
</HEAD>
<BODY>
<FONT FACE="Espy Sans">on 1/27/01 5:56 PM, jason@matchingmoms.com at jason@matchingmoms.com wrote:<BR>
<BR>
</FONT><BLOCKQUOTE><FONT FACE="Espy Sans">I've got my Apache web server installed -- when I launch my web browser and point it to my server (http://192.168.0.200) it delivers the page in /var/www/index.html. &nbsp;Hooray!<BR>
&nbsp;<BR>
My documentation tells me . . .<BR>
&quot;CGI scripts are looked for in /usr/lib/cgi-bin, which is where Debian packages will place their scripts.&quot;<BR>
&nbsp;<BR>
So, I put a simple Perl script in /usr/lib/cgi-bin/test.pl, chmod +x test.pl, and when I point to http://192.168.0.200/usr/lib/cgi-bin/test.pl, I get this error:<BR>
Not Found<BR>
&nbsp;<BR>
The requested URL /usr/lib/cgi-bin/test.pl was not found on this server.<BR>
Any thoughts?<BR>
<BR>
</FONT></BLOCKQUOTE><FONT FACE="Espy Sans"><BR>
The URL that you are using is incorrect. /usr/lib/cgi-bin is the physical location on disk where the files go. Apache has aliased this (probably to either cgi-bin or cgi). Try http://192.168.0.200/cgi-bin/test.pl and see if it works.<BR>
<BR>
I don&#8217;t recall the name of the Apache directive that sets up the cgi-bin directory. You could poke around in /etc/httpd/conf/httpd.conf. This is your master Apache config file, and the setting is in there somewhere.<BR>
<BR>
HTH,<BR>
Ken Scott<BR>
-- <BR>
&lt;&gt;&lt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ken Scott &nbsp;&nbsp;ken@optikos.net &nbsp;&nbsp;http://www.pcisys.net/~kscott<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is the day that the Lord has made;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Let us rejoice and be glad in it &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- Psalm 118:24<BR>
<BR>
</FONT>
</BODY>
</HTML>