Personal homepage

Read this blog for an alternative solution to create a personal homepage with corporate design. If you want instead a personal homepage with “full control”, read below.

General information

The URL (address) of your homepage is/will be the following:

https://people.math.ethz.ch/~username

The main file that you need has to be called index.html. You will probably have some more files like images, CSS-files, PDF-files, etc. You have to put all these files in your www-folder on the server.

An example of an index.html file is the following:

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title of the document</title>
</head>
<body>
    Content of the document.
</body>
</html>

Accessing the  www-folder

You can find the www-folder in you home.

On a desktop computer of the department, the www-folder is usually located in you home folder and is called www.

On all other computer (even on private one and from home) you can access the www-folder via SFTP. More information can be read here:

Files permissions

Set the file and directory permissions as follow:

Type Owner Group Other chmod
file rw r r chmod 644 filename
directory rwx x x chmod 711 dirname

Example (in a terminal):

username@midget% cd ~/www

username@midget% ls -ld *
-rw-------. 1 username others 298 Apr 11 12:16 index.html
drwx------. 2 username others 512 Apr 11 12:16 papers

username@midget% chmod 644 index.html 
username@midget% chmod 711 papers

username@midget% ls -ld *
-rw-r--r--. 1 username others 298 Apr 11 12:16 index.html
drwx--x--x. 2 username others 512 Apr 11 12:16 papers

Author

Posted on
in Web

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

PROTECT YOUR BRAINWORK.

Recent Posts

Trending

Categories

Recent Posts