Publishing your home page

  1. Make your home directory searchable

    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.


  2. Create a public_html directory

    Create a directory in your home directory called public_html, and make it world-readable:


  3. Create a homepage in public_html directory

    You can use different editors to create the file(example, emacs, vi, pico, joe)

    Type in the following(You can use copy and paste, notice that if you use SSH, you have to go to Edit menu and choose paste).
    Hello World!
    <!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
  4. Make your home page world-readable

    Do the following:


  5. View your webpage

    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".