Mosaic must have permission to search your directory for your public directory in order to publish your home page. This does not give anyone the ability to read your files.
myhost.1> cd
myhost.2> chmod go+x .
Create a directory in your home directory called
public_html, and make it world-readable:
myhost.3> mkdir public_html
myhost.4> chmod 755 public_html
You can use different editors to create the file(example, emacs, vi, pico, joe)
myhost.5> cd public_html
myhost.6> pico index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>This is my first Webpage</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <h2>This is a sample HTML page</h2> Hello World! </body> </html> |
Then press ctrl-o to save the file and ctrl-x to exit
Do the following:
myhost.7> chmod 644 index.html
Visit the website now located at http://www.pic.ucla.edu/~yourPicAccountLoginName
The name "index.html" is special. When a URL specifies a directory instead of a file, Mosaic looks in that directory for a file called "index.html" and displays it. This allows people to see your home page by opening the URL "http://www.pic.ucla.edu/~yourPicAccountLoginName".