Set domain with nginx on Amazon server

Amazon provide IP address or we can create Elastic IP of amazon instance, this means website will access by IP address but we want to set domain with that IP address.

First we need to install dependency of nginx on server

When installation complete, go to back on root directory and go to following path

and open the file default with vi

edit the file and add following code at last in the file

Save the file and restart the server


Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.
Harinder Singh

Harinder Singh

My name is Harinder Singh and I specialize in Software industry. I consider myself as a life learner. I love learning new concepts, embracing new ideas and reading and searching for innovation.