Using an INDEX file
You may want someone to be able to open the URL:
http://web.mit.edu/username/www
and see the file:
http://web.mit.edu/username/www/home.html
You can accomplish this through the use of what is known as an index
file.
Basically, whenever a web browser is given a URL which points to
a directory, it searches for a file in that directory named index.html.
If it finds that file, it displays it; if it does not find that file,
it will either list the contents of the directory or give an error
(depending on the browser).
So, to implement this behavior, you will need to create a file named
index.html in your www directory. Since you want this file to be identical
to your homepage (which is in the file named home.html), you need
to create a symbolic link from the index.html file to the home.html file.
You can do this by typing:
cd ~/www
ln -s home.html index.html
You can check to see that it was linked properly by typing:
ls -l index.html
At the far right, you should see something like:
index.html -> home.html
Last Updated: 8/1/96
|