I configured 3 server blocks on nginx for 3 different domain names. But I’m yet to buy domain names. If I enter server IP address like http://53.208.12.57/index.html it was only opening first website (/var/www/site1/index.html). How to see my 2nd & 3rd websites on (/var/www/site2/index.html and /var/www/site3/index.html)?
I also tried opening http://53.208.12.57/site2/index.html also, but it was not working. So what is the correct path to open 2nd website?
/var/www/
so you can usehttp://1.1.1.1/site2/index.html
orhttp://1.1.1.1/site3/index.html
.