Hosting an exported website yourself

Export in the editor gives you the finished website as a zip file. You can put it online on your own server, on a customer's server or on ordinary web space, independently of the builder. This guide walks through all three ways, the contact form, updates and problems.

Contents: Export · What is in the zip · Choose a way · Web space · Own server with Docker · Contact form mails · Updating · Problems · For developers

1. Export

  1. In the page panel, set Site → Public address to the address the site will have, e.g. https://www.example.com. It is used for HTTPS, the sitemap, links for search engines and share previews. (Without it the site still works, but only over plain HTTP, see below.)
  2. Click Export in the top bar. The browser downloads <site name>.zip, e.g. acme-studio.zip. It contains a folder site-<id> with everything.

Export again after every change you want to put online (§ 7).

2. What is in the zip

File or folderWhat it is
public/the finished website: HTML pages, styles, pictures, fonts, 404.html, sitemap.xml, robots.txt
compose.yaml, Caddyfileready-made setup for Docker: the Caddy web server with automatic HTTPS serves public/
Dockerfile, server/a small program that receives contact form messages and sends them as mails (and can serve the whole site, § 9)
.env.examplethe mail settings for the contact form, to copy to .env
compose.dynamic.yaml, Caddyfile.dynamic, site/the variant for developers (§ 9)
README.mda short technical summary

3. Choose a way

WayGood forContact formHTTPS
Web space (§ 4): upload public/ by FTP or the hoster's file managersites without a contact form; the simplest waydoes not work (it needs the small mail program)from your hoster
Own server with Docker (§ 5): a Linux server or VPSevery site, with contact formyesautomatic (Let's Encrypt)

4. Web space (without Docker)

  1. Unpack the zip on your computer and open the folder site-<id>/public.
  2. Upload the contents of public/ (not the folder itself) into the web space's main folder (often htdocs, www or public_html), so that index.html lies directly in it. When you replace an older version, delete the old files first.
  3. Make missing addresses show the site's own "page not found" page:
    • Apache (most web spaces): a file .htaccess next to index.html with the line ErrorDocument 404 /404.html
    • nginx: error_page 404 /404.html; in the site's configuration
  4. Turn on HTTPS in your hoster's settings (usually a free Let's Encrypt certificate).

Check: open the address, click through the menu, and open an address that does not exist (e.g. /test-404): you should see the site's own page not found page.

5. Own server with Docker

What you need

  • A Linux server or VPS (1 CPU and 1 GB RAM are plenty) with Docker and Docker Compose v2. Installation: https://docs.docker.com/engine/install/ (Ubuntu/Debian: follow "Install using the apt repository", then docker compose version must work).
  • Ports 80 and 443 open in the server's firewall (and the provider's firewall, if it has one).
  • The domain points to the server: at your domain provider, an A record (and AAAA for IPv6) for example.com and www.example.com with the server's IP address. Check with nslookup www.example.com; changes can take up to an hour.

Put the site online

On your computer, copy the zip to the server:

scp acme-studio.zip you@your-server:

On the server, unpack it and run the installer in the folder:

unzip acme-studio.zip            # creates the folder site-<id>
mv site-* mysite && cd mysite    # a simple, fixed folder name
bash install.sh

The installer checks Docker, asks for the domain if none was set in the builder, asks for the contact form's mail settings (§ 6, only if the site has a form), checks DNS and the ports, starts the web server and checks that everything runs and the HTTPS certificate arrived. The first start downloads the web server and takes a minute or two.

By hand, the same is:

cp .env.example .env             # only if the site has a contact form; fill it in (§ 6)
docker compose up -d             # starts the web server (and the mail program for the form)

Check:

docker compose ps                         # all services "running" / "Up"
curl -I https://www.example.com           # HTTP/2 200
docker compose logs caddy | tail -20      # certificate obtained, no errors

Open the address in a browser and an address that does not exist (page not found, status 404).

Without a public address the site is served over plain HTTP on port 80 (the first lines of Caddyfile say so). That is fine for a test on your network. For HTTPS set the public address in the builder and export again, or run bash install.sh again (it asks for the domain and sets it in Caddyfile).

Everyday commands

docker compose ps                 # status
docker compose logs -f caddy      # web server log (Ctrl+C to stop following)
docker compose logs forms         # contact form log
docker compose restart            # restart
docker compose down               # stop (the certificates are kept)

The services start again by themselves after a reboot of the server.

6. Contact form mails

A site with a Contact form needs a mail account the messages are sent from. The address the messages go to is set in the builder (the form's Recipient email). Fill in .env with one of the two options, then run docker compose up -d --force-recreate forms.

Option A: Microsoft 365

Needs administrator access to Microsoft 365.

  1. https://entra.microsoft.com → Applications → App registrations → New registration: name e.g. Website, Accounts in this organizational directory only → Register.

  2. Copy the Application (client) ID and the Directory (tenant) ID from the overview.

  3. Certificates & secrets → New client secret (e.g. 24 months) and copy the Value right away (it is shown only once). Note the expiry date: renew the secret before it runs out.

  4. API permissions → Add a permission → Microsoft Graph → Application permissions → Mail.Send, then Grant admin consent.

  5. A sender mailbox: a shared mailbox (free) such as website@example.com, in the Microsoft 365 admin center under Teams & groups → Shared mailboxes.

  6. Strongly recommended: allow the app to send only as that mailbox (otherwise Mail.Send allows any mailbox of your organisation). In PowerShell, after Install-Module ExchangeOnlineManagement:

    Connect-ExchangeOnline
    New-DistributionGroup -Name "Website senders" -Alias website-senders -Type Security
    Add-DistributionGroupMember -Identity website-senders -Member website@example.com
    New-ApplicationAccessPolicy -AppId <Application (client) ID> -PolicyScopeGroupId website-senders -AccessRight RestrictAccess -Description "Website may only send as website@"
    Test-ApplicationAccessPolicy -Identity website@example.com -AppId <Application (client) ID>   # Granted (may take up to an hour)
    

.env:

GRAPH_TENANT_ID=<Directory (tenant) ID>
GRAPH_CLIENT_ID=<Application (client) ID>
GRAPH_CLIENT_SECRET=<the secret's value>
GRAPH_FROM=website@example.com

Option B: any mail account (SMTP)

The SMTP details come from your mail provider (often under "mail programs" or "IMAP/SMTP"). Leave the GRAPH_ lines empty:

SMTP_HOST=smtp.example.com
SMTP_PORT=587                     # 587 (STARTTLS) or 465 (TLS); unencrypted servers are refused
SMTP_USERNAME=website@example.com
SMTP_PASSWORD=the-password
SMTP_FROM=Website <website@example.com>

Check: send a message with the form on the website. It should say Thank you and the mail should arrive at the form's recipient. If not: docker compose logs forms names the reason.

Common problems with mail providers:

Log or symptomCauseFix
Sender address rejected, not owned by user, 553/550 5.7.1the provider only sends from the address you log in with (IONOS, Strato, Gmail, most hosts)SMTP_FROM = the SMTP_USERNAME mailbox (or an alias the provider allows); the visitor's address is the Reply-To, never the sender
535 Authentication failed, Username and Password not acceptedwrong password, or the account needs an app password (Gmail, Outlook.com, iCloud, accounts with two-factor sign-in)create an app password at the provider and use it as SMTP_PASSWORD
SMTP login …: 504/535 at Microsoft 365 (smtp.office365.com)Microsoft is switching off password login for SMTP (SMTP AUTH), or it is disabled for the mailboxuse Option A (Microsoft Graph) instead
i/o timeout / connection refusedthe server's provider blocks outgoing mail ports (many cloud providers block 25, some also 465 for new accounts)use port 587; ask the provider to unblock if needed
mails arrive in spam, or not at allthe sender domain does not allow the provider to send for it (SPF, DKIM, DMARC)set up SPF and DKIM for the sender domain as the mail provider describes
certificate is valid for …, not …SMTP_HOST is an alias of the provider's serveruse the host name from the provider's instructions

The mail service introduces itself with the server's name, or the sender's domain if the server has no full name; set SMTP_HELO= to a name of your choice if a provider insists.

The form is protected against spam (a hidden field and a limit per visitor) without a captcha.

7. Updating the website

Export again in the builder, then:

Docker: copy the new zip to the server and run, in the site's folder:

cd mysite
bash install.sh --update ../acme-studio.zip

It keeps your .env (mail settings), the domain and the HTTPS certificates, starts the new version and checks it. The previous version stays in .previous/; to go back: bash install.sh --rollback.

Web space: delete the old files and upload the contents of the new public/ folder (keep your .htaccess).

8. Problems and solutions

ProblemSolution
env file .env not found when startingcp .env.example .env (the site has a contact form)
The browser warns about the certificate, or no HTTPSDNS does not point to the server yet, or ports 80/443 are closed; docker compose logs caddy, then docker compose restart caddy
Only http:// worksno public address was set; see § 5
port is already allocatedanother web server uses port 80/443 (e.g. Apache or nginx); stop it or use another server
Contact form: Sending failedwrong mail settings; docker compose logs forms (for Microsoft 365 often: wrong secret, missing admin consent, or the access policy does not include the mailbox)
Contact form on web space: Sending failedweb space cannot run the mail program; use § 5
A missing page shows the hoster's error pagethe 404 setting from § 4
Old pages are still reachable after an updateold files were not deleted before uploading

9. For developers

compose.dynamic.yaml runs the site with a small Go program that renders the pages on each request from the templates in site/, instead of serving the pre-rendered public/. It is the starting point for extending a site with own code:

docker compose -f compose.dynamic.yaml up -d --build

It needs the same .env and Caddyfile.dynamic instead of Caddyfile. The README.md inside the export describes the templates and how to use them in your own Go program.