Skip to main content
New Pages Integration

Nginx Reverse Proxy Setup for Similar AI New Pages

Serve Similar AI pages under your own domain subfolder using an Nginx reverse proxy. Three steps, no downtime.

1

Define Your Folder Name

Pick a short URL path that will hold your Similar AI pages. Most teams choose something like /p/. This becomes the subfolder on your domain where visitors will see the generated pages - for example, client.com/p/.

Keep it short and memorable. The folder name is shared with the Similar AI team during onboarding so we can configure your hosted subdomain to match. See the New Page onboarding checklist for the full setup flow.

2

Add the Nginx Configuration

Open your Nginx config file for the relevant server block and add a location directive. The example below assumes your site is client.com and you want pages served at client.com/p/.

location /p/ {
    resolver 1.1.1.1 valid=3600s;
    proxy_ssl_server_name on;
    proxy_set_header Host client_com.page.similar.ai;
    proxy_pass https://client_com.page.similar.ai;
}
  • -resolver - uses Cloudflare DNS (1.1.1.1) with a one-hour TTL so Nginx can resolve the upstream host at runtime.
  • -proxy_ssl_server_name - enables SNI so the TLS handshake includes the correct hostname.
  • -proxy_set_header Host - tells the upstream server which tenant site to serve. Replace client_com with your actual tenant identifier.
  • -proxy_pass - forwards requests to the Similar AI page host over HTTPS.

Using Cloudflare instead of Nginx? Follow the Cloudflare proxy integration guide for a Workers-based approach.

3

Test and Reload Nginx

Validate your configuration syntax first, then restart the service to apply changes.

nginx -t
systemctl restart nginx

If nginx -t reports any errors, fix them before restarting. Once the service is back up, visit client.com/p/ in your browser to confirm the pages load correctly under your domain.

Ready to Publish New Pages on Your Domain?

Similar AI generates SEO-optimized pages and serves them through your existing infrastructure. Set up takes minutes.