Русский
Academy: all guides

When the site shows the wrong thing: draft, domain, and client address

Three common owner problems: an edit stayed in the draft, a public domain opens another site, and Security shows 127.0.0.1 instead of the visitor’s address. Each section starts with a short check in the current Admin and explains where to look next. No live hosts or secrets.

A draft edit is missing on the public site

Saving a page, text, or appearance changes only the draft. Visitors receive the current release, an immutable snapshot created at publication. Compare the draft with the current release, not just “saved or not”.

Open Pages → Publication for the page. It shows the state, the public site, the current release number, and the published page and node revisions. If the public site is not serving this draft and the draft revisions are newer, you need a new release. The hint says the same: editing a page creates draft changes, and the public site keeps serving the current release until you publish again from Releases.

Short sequence:

  1. Save the edit and reopen the page. Make sure you are in the same site, language, and page.

  2. Open Pages → Publication and compare the current release with the draft revisions.

  3. Go to Releases and click Publish & Generate. The button freezes the draft into a release, mints a token, generates the site, and activates the release in that order. If a step before activation fails, the previous release stays current; check the list.

  4. Find the new release in the list: the current one has current, a ready release that is not current has ready, and its generation must be complete. A ready release that is not current can be made current with Activate.

  5. Open Open current site or the public address without signing in to Admin, preferably in a private window. Check the exact page and language you edited.

If the release is new but the edit is still missing. The snapshot may have been taken before the save: retrying generation does not reread the draft. If the edit came after the snapshot, publish another release. Rolling back to an earlier release does not restore the draft or undo newer edits. Changes to navigation, appearance, or a shared header or footer also reach the public site only with a new release: check several pages, not only the edited one.

If the page does not open at all. Check Settings → Availability: if Disable this site is checked, visitors get the offline page with HTTP 503, while members of the site still see it normally. Also check the domain binding: another site may be served at that address (next section).

If an external agent made the edit, it may have changed only the draft or left a proposal for approval. The propose policy and a pending_confirmation response mean the draft has not changed yet. See the MCP and agent guide.

A public domain opens the wrong site

A public address selects a site by the (host, base path) pair, not by the site name or its Public URL. The binding table is the only routing source: if no binding matches the host, Core returns a holding page with HTTP 404; there is no environment “default site” fallback.

Short sequence:

  1. Open Admin → Domains and find the exact host from the address bar. Check the site, base path, and Primary marker.

  2. Remember the longest-path rule: a /shop binding beats the root / binding for /shop/... addresses. The root binding is a catch-all for everything not matched by a longer path.

  3. If another site should be at the root of this host, change the binding or use a separate host or sub-path: two sites cannot occupy the same (host, base path) at once.

  4. Check that nginx passes the requested host instead of a fixed address. Nginx / Web server → Forwarded headers states that Host $host and X-Forwarded-Host $host are required; with trust enabled, Core prefers X-Forwarded-Host.

  5. Open Security → Recent requests: the Host column shows the Host header Core received. X-Forwarded-Host is not displayed there, so check it in the nginx server block. If Host is not the address from the browser, fix the server block.

  6. If the domain and binding are correct but the content is old, check Releases and the current release. The Primary marker affects canonical addresses, not site selection.

What is not a route. The Public URL field in site settings sets the origin used in generated links. It does not create a host binding or redirect a domain. Change routing only in Domains.

The site’s Warnings page reports domain_missing and active_release_missing ahead of time: the first means no host is bound, the second means there is no public release yet. A disabled site serves its own offline page with HTTP 503, not another site.

If the browser shows an old page, check the address in a private window and without an Admin session. Do not change DNS, the certificate, and the binding at the same time: repeat the same request after each step.

Security shows 127.0.0.1

The Security → Recent requests page shows the client address as Core accepted it. Behind a reverse proxy this should be the visitor’s address from X-Forwarded-For. A 127.0.0.1 value means Core did not accept the forwarded address and recorded the immediate TCP peer — usually nginx itself.

First check whether the address is real: a request from the server itself, from a local tunnel, or from a process on the same machine really does arrive from loopback. Compare the request time and the Host column; that distinguishes a local check from an external visitor.

Short sequence:

  1. Open Security → Recent requests; for one site, open its Security page. The list is kept in memory and is cleared when Core restarts. Security is available to system operators only; if it is not in the menu, you need operator access.

  2. Check the effective startup values: HOBA_BIND, the optional HOBA_PUBLIC_BIND, and HOBA_TRUSTED_PROXY. Trust is on by default only when every HTTP listener binds to loopback. If HOBA_BIND listens on an external interface, trust is off by default.

  3. HOBA_TRUSTED_PROXY=0 or false explicitly disables trust; 1 forces it on. Force it only when the trusted nginx is the only path to Core and the Core port is not reachable directly.

  4. Check nginx: it must overwrite X-Forwarded-For $remote_addr, not append a value to the client chain. Core accepts exactly one valid value and only from a loopback peer; with several values it ignores the header and returns the peer address.

  5. Make sure the header is X-Forwarded-For. X-Real-IP alone is not used for this check. Also check that X-Forwarded-Host $host is sent when domain routing is needed.

  6. After editing the env file, restart Core: trusted proxy, bind, and listeners are fixed at startup. Then make a new request from an external client and refresh Recent requests. The old rows disappear with the restart.

Where to look. The header contract is described in Nginx / Web server → Forwarded headers. That page does not prove which address Core received: a browser response cannot show the real IP, and the Admin checks do not read the nginx configuration. Find the env file path with systemctl show -p EnvironmentFiles <unit>, then check the values in that file; do not print the whole env file. Startup errors are in journalctl -u <unit>.

For EnvironmentFile=, restarts, and the default, see the Core environment guide. If Core listens on an external interface, do not enable trust just to get a nicer IP: first move the listener back to loopback behind nginx.

Check order and what to include

If there is more than one symptom, check the layers in one order: the exact public address and path, the binding in Domains, the current release in Releases, then the nginx headers and trusted proxy. This keeps you from publishing or rebinding the site because of a proxy problem.

  1. Write down the exact address, path, language, site, and request time.

  2. Check Domains: host, base path, site, and Primary.

  3. Check Releases: which release is current, when it was created, and whether generation completed.

  4. Check Security → Recent requests: IP, Host, path, and status. Then compare the headers and HOBA_TRUSTED_PROXY on the host.

When asking an operator for help, include the time, public address and path, language, site ID, release number and ID, what you changed, the expected and actual result, the error code, and whether the request went through nginx. Do not include passwords, keys, cookies, the env file, visitor submissions, or backups.

Do not start by reimporting a package, changing DNS, enabling proxy trust on an external listener, or editing the database. Fix one layer and repeat the same check; that keeps the cause visible.