Skip to content

Nginx

Use this page for a self-managed Nginx server: DigitalOcean, a custom VPS and similar.

Two location blocks. The app shows them under Setup → Connect your website with the values filled in; copy them with Copy setup snippet. The shape is:

location = /work {
proxy_pass https://proxy.simplifylocal.app/<business-id>/work;
}
location /work/ {
proxy_pass https://proxy.simplifylocal.app/<business-id>/work/;
}

<business-id> is filled in by the app. Do not type it by hand.

Keep both blocks. The exact match (=) covers the bare /work address; the prefix block covers everything under it. The exact match is deliberate so that paths like /workshop stay with the site.

  1. Open the site’s Nginx server block, often /etc/nginx/sites-available/yoursite.
  2. Paste both blocks inside the server { ... } block. The /work path has to fall under these locations; a more specific location earlier in the file that also matches /work takes precedence.
  3. Test and reload: sudo nginx -t && sudo nginx -s reload.

Do not add a proxy_set_header Host line inside these blocks. The request has to reach us as proxy.simplifylocal.app.

Do not add a block for /_next/*.

Back in the app, click I added it. Check now. See Verify the connection for what each result means.

If the check reports that the site is forwarding but the signal isn’t getting through, look for a proxy_set_header Host $host; line that applies to these locations (including one inherited from the server block) and remove it from their scope, then reload and check again.