# Misc

## Per-user web directories (Apache)

On systems with multiple users, each user can be permitted to have a web site in their home directory using the [`UserDir`](https://httpd.apache.org/docs/2.4/mod/mod_userdir.html#userdir) directive. Visitors to a URL `http://example.com/~username/` will get content out of the home directory of the user "`username`", out of the subdirectory specified by the [`UserDir`](https://httpd.apache.org/docs/2.4/mod/mod_userdir.html#userdir) directive.

```php
curl localhost:3001/../../../~r.michaels/id_rsa
```

Reference: <https://httpd.apache.org/docs/2.4/howto/public_html.html>
