in reply to Re: CGI display a gif
in thread CGI display a gif

this directs me the right location http://localhost/cgi-bin/1.gif but reports an 500 internal server error??

Replies are listed 'Best First'.
Re^3: CGI display a gif
by jhourcle (Prior) on Jun 06, 2005 at 17:00 UTC

    Which is what I suspected. (well, I actually expected a different URL, but I suspected the 500 error, or possibly a 403 (access forbidden, if it was trying to execute a file that didn't have execute permissions) )

    To confirm that bassplayer's and my suspicions are correct, you'll want to continue with the rest of my suggestion:

    If that wasn't useful, check your web server's error logs.

    You really should check your webserver's error log, as there's most likely something more informative in there. (well, maybe not, as it might throw some misleading errors if it's trying to execute something that's not an executable file.)

Re^3: CGI display a gif
by bassplayer (Monsignor) on Jun 06, 2005 at 16:32 UTC
    Perhaps it's trying to execute the image instead of rendering it. The cgi-bin/ directory is special. :-)

    bassplayer

Re^3: CGI display a gif
by ikegami (Patriarch) on Jun 06, 2005 at 16:33 UTC
    Follow bassplayer's advice. Some servers treat everything in /cgi-bin (and subdirectories?) as scripts. Executing a .gif won't definitely result in a 500 error. You need to move your images outside of /cgi-bin.