Solved

index.cgi as default?

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
IBM flash storage 840 15 51
Bad Block Relocation for Synchronous GLVM AIX 7.1 2 53
Skill Development 15 127
Oracle Finace 3 48
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…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
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.

744 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