Solved

index.cgi as default?

Posted on 2001-09-04
2
372 Views
Last Modified: 2010-04-21
If I have no index.htm in my root directory but I have an index.cgi, will the system use the cgi file as a default, or will that cause a problem?
0
Comment
Question by:webmommy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
bira earned 100 total points
ID: 6453362
Hi
When someone tries to open your personal WWW directory, the server looks (in order) for the files index.html, index.shtml,and finally index.cgi. (For the convenience of DOS users, the suffix .htm is also acceptable such as index.htm.) if you want a welcome page to be automatically displayed for curious web surfers, you'll give your index file one of these three names.

  See this URL

 http://expert.cc.purdue.edu

0
 
LVL 40

Expert Comment

by:jlevie
ID: 6455151
Presumably index.cgi isn't an HTML page. Whether the web server will use it by default, e.g, http://www.my-site.tld, in the same way it would serve an index.html page depends on how the server is configured. To run a cgi from the root dir of the site the web server, for example Apache, will need to be told that cgi's are allowed to be executed from the root dir and that index.cgi is DirectoryIndex type. If, as is usual, cgi's are only allowed to be executed from a cgi-bin directory, then you'd have to use http://www.my-site.tld/cgi-bin. And of course the index.cgi would have to reside in the cgi-bin directory.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question