Solved

index.cgi as default?

Posted on 2001-09-04
2
353 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 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
cant install flashplugins for firefox in freebsd 8 9 45
nodeip 9 75
help pulling data string using Awk 9 63
How do disable only TLSv1.0 in Oracle Sun One 7.1 Server 9 74
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
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 how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

895 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now