Dokku server hosts two sites with TLD's, both domains are landing on only one app

I have two simple dokku sites on one server. The first is a static html site, and the second is a very simple rails app. Each app has its own TLD.
For the sake of argument well give them the domains: static.com and rails.com.

Ive used the Dokku domains plugin to set both the naked and ‘www’ domains for each site. The domain names were purchased and setup through NameCheap

  • how to consume rest api of apache nutch docker
  • How to run a docker container as a daemon starting the rails project built inside?
  • What is [loop0] process for?
  • How to activate docker 1.12 in terminal without Moby the whale app on Mac
  • command line arguments to docker run
  • How to set image stored path in docker registry?
  • The namecheap domains each have two entries:

    @    |    http://www.static.com    |    URL Redirect
    www  |    static.server.com        |    CNAME(alias)
    
    @    |    http://www.rails.com     |    URL Redirect
    www  |    rails.server.com         |    CNAME(alias)
    

    I encountered this issue on the Dokku Github page which would indicate that this can be overcome by using the naked domain as the app name when creating the original git remote.

    git remote add dokku dokku@server.com:static.com
    

    However, that issue was closed two years ago, and the same result seems to be accomplished by the domains plugin. So im wondering if I should restart from this point with both apps?

    So far the above steps has resulted in traffic from both domains being sent to static.com. Has anyone encountered this before? Is there a way to overcome this issue?

  • Add entries to containers /etc//hosts When spinning up a pod with pod1.yaml or pod1.json
  • Not able to read the image LABEL key and values of particular image using AWS java APIs
  • Docker CLI in Freestyle Build Shell
  • Jenkins triggers jobs without git changes
  • Meteor Mupx with Nginx reverse proxy
  • Elastic beanstalk : load balancer DNS unreachable
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.