Back

Local web pages

This is the diff between the backup and the current copy.

# Local web pages

If you want a local web page like https://grenzland.club/~phf/ this is what to do.

Make your home directory world-
readnavigable. Yes! People will be able to list the files in here.Apache needs to "pass through the directory" but others won't be able to list the directory (unlike if you would make it world-readable instead). They will however still be able to get to places they already know exist:

```
chmod 7
5511 $HOME
```

Create a `public_html` folder and make it world-
readnavigable, too.:

```
mkdir $HOME/public_html
chmod 7
5511 $HOME/public_html
```

Create a small page and make it world-readable
, too; yes this time is must actually be world-readable:

```
echo '<body>OK!' > $HOME/public_html/index.html
chmod 644 $HOME/public_html/index.html
```

Now it should work.

Test it: https://grenzland.club/~alex/

Remember, though: YIf you make your home directory is now world-readable instead (by the people with an account on the same machine) you may lose some privacy. So if you create a file called `~/Rten-reasons-to-hate-Aalex.txt` then user `alex` might have reasonable doubts regarding your interactions even if they cannot read what you actually wrote into that file.

The alternative is to [use the wiki](users)Of course you could also just [use the wiki](users) instead and not bother with HTML and all that.