VonHerman,
In this config I combined the configuration of both domains and the server_name is in there. I also tried created two separated instances such as:
domain1
server {
...
server_name agencialojavirtual.com.br;
...
}
domain2
...
server_name agencialojavirtual.com.br;
...
}
and created symbolic links for them. I restarted nginx but that did not work too.
On my DNS server a have one A record for to www and another for * pointing to the server IP address.
I don't know what else to do. I have followed all tutorials and pretty much they all talk the same thing. Some say to separate the domain instances in separated files to facilitate management. Others use the other approach of putting everything in one file like I did above after I tried the other method.
Thanks
In this config I combined the configuration of both domains and the server_name is in there. I also tried created two separated instances such as:
domain1
server {
...
server_name agencialojavirtual.com.br;
...
}
domain2
...
server_name agencialojavirtual.com.br;
...
}
and created symbolic links for them. I restarted nginx but that did not work too.
On my DNS server a have one A record for to www and another for * pointing to the server IP address.
I don't know what else to do. I have followed all tutorials and pretty much they all talk the same thing. Some say to separate the domain instances in separated files to facilitate management. Others use the other approach of putting everything in one file like I did above after I tried the other method.
Thanks