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.htmlThis 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.htmlThis secure website will be available at the URL https://secure.math.ias.edu/~ezeno
echo $HOMEwill 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
kompozeron 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, consult http://www.w3schools.com/html/
What if I only want to redirect my School of Mathematics home page to an existing page that I have?
- If you have not created your public_html directory, follow the steps above.
- Create a file called index.html
- 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. - Save the file. Your page should automatically redirect to your new page.
Friday, January 16th 2009