Problem on new domain redirection. Cloudflare / NGINX config

Hi community,

We have problems to debug domain redirections at, where we are not able to configure a couple of extra domains to be working as expected.
We are trying to configure the following and domains
We do have NGINX configuration for each domain like following

server {

  # Stripe domain verification
  location = /.well-known/apple-developer-merchantid-domain-association {
    add_header 'Content-Type' 'text/plain; charset=utf-8';
    try_files /.well-known/apple-developer-merchantid-domain-association =404;

  location / {
    rewrite ^$request_uri permanent;

  # Uninstall Service workers
  if ($uri ~* "ngsw.json") {
    return 404;

that for the use of

# *
server {
  listen 443 ssl http2;
  server_name *;
  ssl_certificate /etc/ssl/certs/;
  ssl_certificate_key /etc/ssl/certs/;

We have disabled any page redirects on Cloudflare and the DNS records are following the same as for

The strange thing is that redirects to
while stays at that domain as expected

In the case of or redirect to
while (or any other sub-url) works as expected

The dificult thing here seems to be realizing whether the config is missing at the DNS / Cloudflare side or at the NGINX side.
Any idea or suggestion on what may be happening or any suggestion on how to debug where do this redirects are applied from.
I can share full config if it will help

Thanks in Advance

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.