In the nginx.conf I have following line
# all the virtual hosts
Now I keep on adding new config file under vhosts
directory and then I reload the nginx. Now my script add the custom server_name web1.example.com;
in config files
so while adding the config file I do not check if any of the existing config under vhosts
directory already have a server_name web1.example.com
. So I am wondering what will happen if multiple config file has same server_name
. Isnt' there going to be conflict as each config has different proxy_pass
address. I would like to know how to what happen in such case of duplicate server_name and what is the best practice.
Thanks in advance!