How do I setup a home page in the School of Mathematics?

To setup a home page you will need to create a directory called public_html in your home directory. In this directory you will need to create a file called index.html, index.php or index.cgi

The permissions on your home directory and on the public_html directory must be such that the web server (apache) has permission to access the files.

Assume our username is ezeno and our home directory is /home/paradox/ezeno, then to make our personal home page:

cd
mkdir public_html
cd public_html
echo "

Stuck in the Middle" > index.html

cd
chmod 701 /home/paradox/ezeno public_html
chmod 604 public_html/index.html

This ficticious webpage would be available at the URL: http://www.math.ias.edu/~ezeno

Note:It currently takes one day for the link http://www.math.ias.edu/~username to become active on the Members Home Page. This is not a policy, it is a shortcoming of the software.

Secure Home Page
If you have information that you wish to have encrypted on transit, you may setup a secure home page. To setup a secure home page, you will need to create a directory called private_html in your home directory and create an index file in this directory. Assume our username is ezeno and our home directory is /home/paradox/ezeno, then to make our private home page:

cd
mkdir private_html
cd private_html
echo "

Half way there again." > index.html
cd
chmod 701 private_html
chmod 604 public_html/index.html

This secure website will be available at the URL https://www.math.ias.edu/~ezeno

echo $HOME

will tell you the location of your home directory

Edit your home page

Now that you have created index.html, you will want to edit it.
To edit the page using a GUI application, use Kompozer. It is located under Internet in your menu. You can also type

kompozer

on a command line.
If you are comfortable editing the files by hand, use your favorite text editor to edit index.html.
Browse to the file ~/public_html/index.html
For more information on HTML, please consult http://wiht.link/html-guide

What if I only want to redirect my School of Mathematics home page to an existing page that I have?

  1. If you have not created your public_html directory, follow the steps above.
  2. Create a file called index.html
  3. Edit it with the following:
    <HTML>
    <BODY>
    <META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://my.remote.site/~ezeno/">
    Your browser will automatically redirect you to my page:  
    <A href="http://my.remote.site/~ezeno/">http://my.remote.site/~ezeno/</a>
    </BODY>
    </HTML>
    

    Substitute http://my.remote.site/~ezeno/ with your existing page's URL.

  4. Save the file. Your page should automatically redirect to your new page.