FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.
Knowledgebase: HTML
Will my HTML files or image files work when placed in my cgi-bin?
Posted on 01 January 2004 03:29 AM
The 'cgi-bin' is a magic directory that interprets all files called as executable scripts, so this will not work. This is done to prevent something like the following from being viewable:

Instead of displaying that file, it will try to execute it which will cause a 500 Internal Error since there is no executable code within -- only plain text.

In order for the files to be served properly and be viewable from the web, you will need to move the .html files and graphic files out of your cgi-bin directory into your /www/ directory.

Remember to also change your paths to these files accordingly.