acme.com/blog to Notra from your own server with nginx or Caddy. The important part is the Host header, which must be your Notra address rather than your own domain, or every page answers with a 404. Read the steps on every platform first, and replace acme.notra.site with the Notra address on your site’s Domains page.
nginx
Add these blocks to theserver block for www.acme.com:
nginx.conf
snippets/notra-site.conf
proxy_passwithout a path keeps the request path, so/blog/launchgoes tohttps://acme.notra.site/blog/launch.proxy_set_header Hostmatters when your config setsproxy_set_header Host $host;at theserverorhttplevel, which is common, because without the override Notra gets your domain and answers with a 404.proxy_ssl_server_name onsends the right TLS server name, and without it the connection may get the wrong certificate or be refused.- nginx passes redirects and the
Acceptheader through by default. - nginx looks up
acme.notra.sitewhen it starts or reloads, so if the name doesn’t resolve at that moment, nginx refuses to start.
sudo nginx -t && sudo systemctl reload nginx, then click Check on the domain in Notra.
Caddy
Caddy before 2.11 sends the visitor’sHost header to the upstream, so set it explicitly. Caddy 2.11 and later do this for HTTPS upstreams on their own, and the line is harmless there.
Caddyfile
caddy reload, then click Check on the domain in Notra.
Other servers
Any reverse proxy works as long as it follows these rules, which means it forwards the section paths and everything below them, keeps the path, sends your Notra address asHost and doesn’t follow redirects.