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: and

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

  • docker-compose does not override a command using the start command
  • What's the main advantage of using replicas in Docker Swarm Mode?
  • Execute command in linked docker container
  • Multi PostgreSQL DB in data only container
  • How to install ElasticSeach plugins using docker compose
  • How to keep changes inside a container on the host after a docker build?
  • The namecheap domains each have two entries:

    @    |    |    URL Redirect
    www  |        |    CNAME(alias)
    @    |     |    URL Redirect
    www  |         |    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

    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 Has anyone encountered this before? Is there a way to overcome this issue?

  • Bad substitution [duplicate]
  • Why do I need to give the hostname in netty socketio and how to handle socketio in docker?
  • Pushing docker image to new docker hub account fails
  • Docker registry and index
  • dotnet run won't use bower packages
  • docker: freeze library dependencies
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.