Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

index.cgi as default?

Posted on 2001-09-04
2
Medium Priority
?
391 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
2 Comments
 
LVL 6

Accepted Solution

by:
bira earned 400 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
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.
Suggested Courses
Course of the Month12 days, 10 hours left to enroll

972 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