Fundamentals
What is a .env file?
The dotenv format, where it comes from, what usually lives inside, and why it must stay private.
7 min read
Guides
Short, practical guides with configuration you can copy, explanations of why it works, and a checklist at the end of each one.
Fundamentals
The dotenv format, where it comes from, what usually lives inside, and why it must stay private.
7 min read
Fundamentals
Keep secrets out of the web root, block dotfiles, and know what to do after an exposure.
9 min read
Web servers
Location blocks that deny dotfiles, keep /.well-known reachable, and survive config refactors.
8 min read
Web servers
Require all denied for dotfiles in the vhost or .htaccess, and the AllowOverride trap.
7 min read
Frameworks
Point the document root at public/, disable debug mode, cache config and rotate APP_KEY safely.
9 min read
Frameworks
Static file middleware, public env prefixes in bundlers, Docker images and secret managers.
9 min read