🌍Document Root
Also known as Web Root, Webroot, DocumentRoot
The folder a web server hands out files from. Visitors see only what is in it.
Think of it like
It is like the shelf in a shop window. Only what is on that shelf can be seen from the street.
Example
Lucy's root is the shop folder. She puts logo.png in its images folder. It then shows at /images/logo.png on her site.
Why it matters
It decides what the world can download. A file put there by mistake can be read by anyone.
Definition
Common mistake
Key takeaways
- 1One folder. The web serves from here.
- 2Paths map. The web address follows the folders.
- 3Public by default. Assume anything inside is seen.