Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25901

NGINX: vhost.sh ignores server-name

    XMLWordPrintable

    Details

      Description

      Created after EZP-25900.

      I execute the command below, specifying the hostname as ezpublish.dev.

      bin/vhost.sh --basedir=/data/Web/ezpublish/main --template-file=doc/nginx/vhost.template --host-name=ezpublish.dev --port=80 --sf-env=dev --request-timeout=60

      The result is

      server {
          listen       80;
          # Further documentation: http://nginx.org/en/docs/http/server_names.html
          server_name   *.localhost;
      
          root /data/Web/ezpublish/main/web;

      After some digging, I noticed the vhost.sh script is using the -host-alias parameter to fill the server_name line, instead the -host-name parameter.

      I think the problem might be a regression introduced by the Prefixed applicable template variables with SYMFONY_ and reorder commit.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            eduardo.fernandes-obsolete@ez.no Eduardo Fernandes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: