Lukas' Notes

web

Definition

Webroot

The webroot (or document root) is the filesystem directory from which a web server serves files. A request for a path is resolved by appending the URL path to the webroot.

For example, if index.php lives at /var/www/htdocs/index.php, then /var/www/htdocs/ is the webroot. This is the directory the server must not let a user escape via a path traversal attack.