Dockerfile icon indicating copy to clipboard operation
Dockerfile copied to clipboard

change the order of virtual hosts in nginx

Open rtyshyk opened this issue 5 years ago • 1 comments

Hi there,

It would be really nice to change the order of hosts in nginx config and make <ALIAS_DOMAIN> the first host, e.g.

server_name <ALIAS_DOMAIN> _ docker; (/etc/nginx/vhost.conf)

For example nginx-vts-module uses only the first host from virtual host, as result it is not possible to do a filter by a host in Prometheus.

Of course I can change the host myself, replacing the file, but it would be really nice to do it only using env variable.

I don't see there any breaking change, as '_' fallback is still there.

Does it make sense?

rtyshyk avatar Jul 07 '20 14:07 rtyshyk

any updates?

thanhtoan1196 avatar Dec 01 '23 09:12 thanhtoan1196