Worker routes: collisions before creating a DNS record

The hostname is absent from DNS, yet broader Worker routes already cover RSS and sitemap. Check the patterns before opening the educational origin.

A coastal road and coloured bands crossing between rocky cliffs.
A coastal road and coloured bands crossing between rocky cliffs.

An empty DNS result does not prove a clear route

For the educational E-01, I checked e01-demo.solution200.com: it has no exact DNS record. I then read the Worker routes separately. This exposed an important distinction: the name has not been created, yet broader rules can already cover its future requests.

What the manual check found

The zone contains 14 routes. The hostname part of seven covers the educational candidate, but all seven are limited to specific paths: RSS, sitemaps and their language variants. The observed inventory has no scripted route covering every path for this name. Below are examples of these pattern classes with a replacement domain, not the full account configuration.

*.example.com/rss/*
*.example.com/sitemaps/*
*.example.com/sitemap.xml*

Why the homepage alone would miss it

None of these seven rules matches /. By contrast, /rss/feed.xml, /sitemaps/index.xml and /sitemap.xml fall into their respective families. This is a local pattern check, not an external HTTP result: DNS has not been added. A 404 status alone would not establish whether E01 or a Worker answered.

Repeating the check through the CLI

After the manual inspection, I prepared a separate routing inspect command. It uses the existing Worker operator profile, a different role from the new DNS user token. The CLI made four GET requests: account-token verification, intended-zone verification, route listing and Worker Custom Domain listing. All returned HTTP 200. The command below shows the invocation form; its output file must be new.

deploy-cli cloudflare routing inspect \
  --env-file "$HOME/.secrets/solution200.com/cloudflare/workers-deploy.env" \
  --zone solution200.com \
  --hostname e01-demo.solution200.com \
  --output-file ./e01-routing-inspection.json

Reading the summarized report

These are selected fields from the actual CLI report. Seven scripted_paths means potential hostname collisions with narrower paths, not seven proven executions for one URL. The inventory contains one Worker Custom Domain serving another purpose; the candidate has no exact or preview-ancestor match. The command does not choose a winning route or inspect DNS, Access, Tunnel, TLS or the origin.

{
  "status": "passed",
  "write_performed": false,
  "routing": {
    "routes_complete": true,
    "routes": 14,
    "covering_hostname": 7,
    "scripted_paths": 7,
    "scripted_all_paths": 0,
    "no_script_covering": 0,
    "scheme_specific": 0,
    "domains_complete": true,
    "domains": 1,
    "exact_domains": 0,
    "potential_preview_roots": 0
  }
}

Preparing precise exclusions

I prepared seven new patterns using the exact educational hostname and the same paths. The plan is to create them without an attached Worker, preserving all 14 existing rules. This remains a plan: no new routes exist, and the expected future total of 21 is not the current state.

e01-demo.solution200.com/rss/*
e01-demo.solution200.com/ru/rss/*
e01-demo.solution200.com/en/rss/*
e01-demo.solution200.com/sitemaps/*
e01-demo.solution200.com/ru/sitemaps/*
e01-demo.solution200.com/en/sitemaps/*
e01-demo.solution200.com/sitemap.xml*

A Worker exclusion is not access protection

Cloudflare documents no-script routes as exclusions. With identical paths, the exact hostname is more specific than the wildcard. Paths are case-sensitive; a trailing * also covers suffixes and query strings. I will test /sitemap.xml-extra too. This needs actual edge verification after connection, rather than a configuration-only assumption.

What the origin actually returned

Through the existing protected SSH connection, I verified the educational server and made local HTTP requests. Below is the GET command run on E01, followed by just two selected headers from its actual response. This request with the future public Host reached the Nginx default server, which returns 404. It does not yet verify Symfony execution: the private application uses a different Host, e01-app.example.test.

curl --silent --show-error --max-time 15 -D - -o /dev/null \
  -H 'Host: e01-demo.solution200.com' \
  http://127.0.0.1:8081/
HTTP/1.1 404 Not Found
X-Robots-Tag: noindex, nofollow

What precedes public DNS

The six checked paths — /, /rss/feed.xml, /sitemaps/index.xml, /sitemap.xml, /.env and /index.php — returned 404 with noindex, nofollow. Nginx serves the private origin on 127.0.0.1:8081; it has no public Nginx listener on 443 or explicit vhost for the candidate yet. I only read the existing Strict zone TLS mode.

The next stage

I selected a separate HTTPS origin with an Origin CA certificate and HTTP Basic Authentication for the next preparation stage. This is planned work, not an already exposed site. TLS, password protection and direct-origin restrictions must precede DNS; precise exclusions and external allowed/denied and noindex checks follow. This inspection changed no DNS records, Worker routes, TLS settings or server configuration.

Primary sources

Cloudflare: route matching and no-script exclusions; Cloudflare API: Worker Domains.

  1. Operations & Security HTTPS and a password for E-01: Nginx, Origin CA and Symfony
  2. Platform Engineering Private Symfony on E-01: the Nginx → FPM → application path
  3. Platform Engineering The domain and Cloudflare before connecting E-01
  4. Operations & Security A separate Cloudflare DNS token for the educational E-01
  5. Operations & Security Connecting E-01 through Cloudflare while keeping password protection

A project by the author · Weather Solution200

After reading, a look outside.

Temperature, rain and wind in your city. Check the forecast and plan the hours ahead.

Check the forecast
Next article