From: andrew@tagsys.com (Andrew Gideon) Date: 23 Jun 1996 18:41:10 GMT Newsgroups: comp.infosystems.www.authoring.cgi In article j46@news.nyu.edu, hubert@wilma.cs.nyu.edu (Hung-Hsien Chang) writes: >Is there a way ( server side or the client side) so >when the brwoser access the default homepage ( which is >usually index.html) the http server will give the >browser content according to the environment >information. Of course, we could use a <META CONTENT="0;.... > >but this is one page more. > You didn't indicate the server that you're using, and NYU's CS server is an old NCSA version so this may not be of help. But Apache provides a configuration directive called "DirectoryIndex". This is essentially a "search path" of files to present when a directory is requested in a URL. An example configuration is: DirectoryIndex index.cgi index.shtml index.html index.htm If "index.cgi" is present, it will be used. Otherwise, "index.shtml", otherwise... I don't recall if DirectoryIndex may be expressed in a ".htaccess" file; check the documentation. Also, I've no idea whether or not NCSA 1.4.1 (the version on www.cs.nyu.edu) supports this. Again, check the documentation. BTW, another possibility, if what you want is merely an HTML file, is to use a link. - Andrew --- ----------------------------------------------------------- | Andrew Gideon | TAG Systems inc. | | Consultant | Suite 333 | | | 41 Watchung Plaza | | Tel: (201) 783-5583 | Montclair, N.J. 07042 | | Fax: (201) 783-5334 | | | andrew@tagsys.com | http://www.tagsys.com/ | -----------------------------------------------------------
From John's Useful Posting Archive (JUPA)
Maintained by John Callender
John's Home Page
Archive created with babymail