Web services note

Nginx Static Site Layout

A static website is a good choice for small documentation pages because it has a simple file structure and does not require a database or application runtime. This keeps routine maintenance clear and predictable.

Recommended structure

A practical layout keeps content, note pages and shared assets separated:

  • /var/www/example.org/index.html for the main page
  • /var/www/example.org/notes/ for documentation notes
  • /var/www/example.org/assets/ for stylesheets and images

Ownership and permissions

For a read-only static site, the web server only needs permission to read files. Directories can use 755 and files can use 644. Keeping the files owned by an administrator account makes accidental changes by the web process less likely.

Configuration records

The site configuration should include the domain name, document root, log file names and a short note about how the configuration was tested. This is enough context to understand the setup later without searching through command history.

Simple content is easier to maintain

Static pages are most useful when they stay short, clear and focused. Each page should describe one task, one checklist or one operational note.

← Back to notes