[CLUE-Tech] debian-apache-cgi-bin

Ken Scott kscott-list at pcisys.net
Sun Jan 28 00:25:04 MST 2001


on 1/27/01 5:56 PM, jason at matchingmoms.com at jason at matchingmoms.com wrote:

> 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.  Hooray!
>  
> My documentation tells me . . .
> "CGI scripts are looked for in /usr/lib/cgi-bin, which is where Debian
> packages will place their scripts."
>  
> 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:
> Not Found
>  
> The requested URL /usr/lib/cgi-bin/test.pl was not found on this server.
> Any thoughts?
> 

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.

I don¹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.

HTH,
Ken Scott
-- 
<><      Ken Scott   ken at optikos.net   http://www.pcisys.net/~kscott

                This is the day that the Lord has made;
                Let us rejoice and be glad in it          -- Psalm 118:24


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cluedenver.org/pipermail/clue-tech/attachments/20010128/83520637/attachment.html


More information about the clue-tech mailing list