Overlay install

Lazysite installs non-destructively over a live HTML or SSI site. The existing pages keep serving throughout, and migration to Markdown happens page by page, at whatever pace suits.

What the installer touches

The installer is manifest-driven: every shipped file is classified as code or seed content.

  • Code - the cgi-bin scripts, the engine modules, plugins and tools installed beside the docroot (../lib, ../plugins, ../tools), the engine's own templates, and the shipped docs/, assets/, manager/ and .well-known/ files - is always installed and refreshed, since it must match the shipped version.
  • Seeds - starter pages such as index.md, the form and registry templates, and the lazysite.conf and nav.conf seeds - are written only when absent.

Any non-code file that already exists on disk is preserved and left as it is - including files the installer has never tracked, such as the homepage of the site being overlaid. Upgrades follow the same rule: per-file checksums recorded at install time mean an edited seed is kept.

A site that should carry none of lazysite's own demo pages and /docs/ pages is provisioned with --no-starter; see A site without lazysite's own pages.

The engine's own tree is lazysite/ inside the docroot, or <docroot>-lazysite/ beside it where that directory exists.

Existing pages

The installer leaves existing .html and .shtml files in place. While no index.md exists, / serves the existing index.html, so the original homepage keeps serving.

Sites installed with the older Hestia template hook also have a one-time preinstall-*.tar.gz snapshot of the original docroot, listed on the manager's Backups page.

How existing pages keep serving

How a request reaches an existing file depends on the vhost template:

  • With the vhost-cgi and vhost-fcgi templates the web server serves real files first. FallbackResource (Apache) or try_files (nginx) routes only misses to lazysite. For clean URLs, the shipped Apache vhost maps /page to a sibling page.shtml (preferred, so Apache expands SSI includes) or page.html when no page.md exists.
  • With the one-rule templates every request goes to lazysite's front door, which serves an existing file itself. For clean URLs it maps /page to page.html, then page.shtml, when no page.md exists.
  • On any front end, including the development server, the processor itself serves a sibling page.html verbatim when no page.md exists.

On a site with access rules (an auth/acls.json store), existing static files and legacy pages are served through the engine, so the rules apply to them too.

Migrating page by page

A Markdown source always wins: the moment page.md lands, that URL is rendered by lazysite, and the old static file is no longer consulted for the clean URL. Pages without a Markdown source continue to serve their original HTML indefinitely, so the site is complete at every step of the migration.