Skip to content

Using multiple domain names causes an error #25

@myoung34

Description

@myoung34

docker inspect on my app container shows:

      "Env": [
        "VIRTUAL_HOST=kegduino.org www.kegduino.org",

My task definition:

      "environment": [
        {
          "name": "VIRTUAL_HOST",
          "value": "kegduino.org www.kegduino.org"
        }
      ],

However the reverse proxy errors with:

2018/07/10 18:25:49 found cluster region to be: us-east-1
2018/07/10 18:25:49 found cluster name to be: App 
2018/07/10 18:25:49 updating config
2018/07/10 18:25:49 [reverse-proxy] virtual_host environment variable not found. skipping
2018/07/10 18:25:49 running signal command
2018/07/10 18:25:50 ===== output start =====
2018/07/10 18:25:50 2018/07/10 18:25:49 [emerg] 14#14: invalid number of arguments in "upstream" directive in /etc/nginx/conf.d/default.conf:43
nginx: [emerg] invalid number of arguments in "upstream" directive in /etc/nginx/conf.d/default.conf:43
2018/07/10 18:25:50 ===== output end =====
2018/07/10 18:25:50 failed to run signal command
2018/07/10 18:25:50 error:  exit status 1
2018/07/10 18:25:50 []

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions