15

Took me an hour to figure out what was wrong, those quotes aren't part of the error message... :'(

Comments
  • 1
    Either you dont have Nginx installed or you do but have misplaced/no configuration files.

    If you have misplaced/no configuration files, run nginx -t to see where they are. If Nginx cant find them, create them.

    Btw. I have never used Docker or Nginx ever in my life. All it took for me was a little look in Nginx panpage.
  • 4
    @HampusMa I know what the issue was, I had escaped quotes in a script I use to inject environment variables into my nginx config files :)

    I have an nginx container, I copy my config files (with $ expressions) to /etc/nginx/temp and one shell script to /bin in the Dockerfile.

    When it starts, the nginx config files get converted so that ${server_name} becomes localhost and ${hsts_time} becomes 1 or 3600000 depending on the environment. In this way I can use the same container but with different environment variables.

    I use this monstrosity for it: @highlight
  • 2
  • 1
    An external dev company has made this error, with the default config. I was able to see it as the only one.
Add Comment