Workers on a second level subdomain


I was trying to deploy my worker with wrangler to a second level subdomain, e.g.: And it wasn’t working at all, I was constantly getting HTTP 522 error while wrangler dev was working correctly on my local.
When I tried to deploy the same worked to the first level subdomain, it magically worked.

Is there a way to deploy workers to a second-level subdomain? Where can I find it in the documentation?

Thank you,

The first problem that comes to mind is SSL. Did Wrangler push it, but then it didn’t work?

1 Like

Thanks sdayman, you nailed it. I was relying on universal SSL, didn’t check its manual to understand the limitations. Though Workers/wrangler didn’t show any warnings or relevant errors.

1 Like