> For the complete documentation index, see [llms.txt](https://gitbook.seguranca-informatica.pt/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.seguranca-informatica.pt/cheat-sheet-1/web/misc.md).

# 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>
