Lumen help

Advanced domain setup

The Lumen platform only accepts requests with a domain name that is explicitly added to an environment. For example, if you add www.example.com to Lumen as www.example.com but then choose to create a blog.example.com CNAME record pointing at www.example.com.c.section.io., visitors to http://blog.example.com will receive an error page showing HTTP 409 Conflict.


This is because blog.example.com has not been explicitly associated with a Lumen environment. In this case you would need to add blog.example.com to a Lumen environment and then create a blog.example.com.c.section.io CNAME record for blog.example.com in your DNS hosting console. The same is true if you register a bare domain record such as example.com. Each domain must be specified in full in order for the request to be accepted by Lumen.


If you would like your Lumen application to respond to multiple domains, you can add them on bottom of the Domains page under Domains. You can also add or delete additional domains using our API:

                POST 
/account/{accountId}/application/{applicationId}/environment/{environmentName}/domain/{hostName}

DELETE
/account/{accountId}/application/{applicationId}/environment/{environmentName}/domain/{hostName}
            

 

Please review our HTTPS setup page to ensure all of your domains are properly covered by either our automated HTTPS or your own custom certificates to prevent certificate errors.

 

If the additional domain names should redirect to the canonical domain name to improve search engine ranking, this can be achieved with a basic Varnish Cache configuration, for example:

                vcl 4.0;

sub vcl_recv {

  return (synth(700, ""));

}

sub vcl_synth {

    if (resp.status == 700) {

        set resp.status = 302; # or 301 if preferred

        set resp.http.Location = "https://canonical-domain.example.com" + req.url;

        return(deliver);

    }

}