I want to use two different domains with different IP addresses, for example
domain1.com - 12.34.56.78
domain2.com - 98.76.54.32
I am using nginx on Linux OS. What should I add in my nginx.conf?
I want to use two different domains with different IP addresses, for example
domain1.com - 12.34.56.78
domain2.com - 98.76.54.32
I am using nginx on Linux OS. What should I add in my nginx.conf?
You have to create two virtual hosts using
server
block.Let's suppose
/var/www
containsdomain1.com
anddomain2.com
directories with whatever HTML pages, CGI scripts, ...