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
- 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.) - Click Export in the top bar. The browser downloads
<site name>.zip, e.g.acme-studio.zip. It contains a foldersite-<id>with everything.
Export again after every change you want to put online (§ 7).
2. What is in the zip
| File or folder | What it is |
|---|---|
public/ | the finished website: HTML pages, styles, pictures, fonts, 404.html, sitemap.xml, robots.txt |
compose.yaml, Caddyfile | ready-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.example | the mail settings for the contact form, to copy to .env |
compose.dynamic.yaml, Caddyfile.dynamic, site/ | the variant for developers (§ 9) |
README.md | a short technical summary |
3. Choose a way
| Way | Good for | Contact form | HTTPS |
|---|---|---|---|
Web space (§ 4): upload public/ by FTP or the hoster's file manager | sites without a contact form; the simplest way | does not work (it needs the small mail program) | from your hoster |
| Own server with Docker (§ 5): a Linux server or VPS | every site, with contact form | yes | automatic (Let's Encrypt) |
4. Web space (without Docker)
- Unpack the zip on your computer and open the folder
site-<id>/public. - Upload the contents of
public/(not the folder itself) into the web space's main folder (oftenhtdocs,wwworpublic_html), so thatindex.htmllies directly in it. When you replace an older version, delete the old files first. - Make missing addresses show the site's own "page not found" page:
- Apache (most web spaces): a file
.htaccessnext toindex.htmlwith the lineErrorDocument 404 /404.html - nginx:
error_page 404 /404.html;in the site's configuration
- Apache (most web spaces): a file
- 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 versionmust 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.comandwww.example.comwith the server's IP address. Check withnslookup 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.
-
https://entra.microsoft.com → Applications → App registrations → New registration: name e.g.
Website, Accounts in this organizational directory only → Register. -
Copy the Application (client) ID and the Directory (tenant) ID from the overview.
-
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.
-
API permissions → Add a permission → Microsoft Graph → Application permissions → Mail.Send, then Grant admin consent.
-
A sender mailbox: a shared mailbox (free) such as
website@example.com, in the Microsoft 365 admin center under Teams & groups → Shared mailboxes. -
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 symptom | Cause | Fix |
|---|---|---|
Sender address rejected, not owned by user, 553/550 5.7.1 | the 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 accepted | wrong 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 mailbox | use Option A (Microsoft Graph) instead |
i/o timeout / connection refused | the 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 all | the 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 server | use 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
| Problem | Solution |
|---|---|
env file .env not found when starting | cp .env.example .env (the site has a contact form) |
| The browser warns about the certificate, or no HTTPS | DNS does not point to the server yet, or ports 80/443 are closed; docker compose logs caddy, then docker compose restart caddy |
Only http:// works | no public address was set; see § 5 |
port is already allocated | another web server uses port 80/443 (e.g. Apache or nginx); stop it or use another server |
| Contact form: Sending failed | wrong 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 failed | web space cannot run the mail program; use § 5 |
| A missing page shows the hoster's error page | the 404 setting from § 4 |
| Old pages are still reachable after an update | old 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.