Search code examples
reactjsnginxubuntu-16.04create-react-app

Domain not working on create-react-app nginx


I am hosting my website in a cloud ubuntu 16.04-64, it is being displayed in 200.98.201.143. However, the mb-mock.com domain that I also setup isn't working.

Here is my default file:

server {
  listen 80 default_server;
  root /home/mbpower/build;
  server_name mb-mock.com 200.98.201.143;
  index index.html index.htm;
  location / {
  }
}

I don't know if this helps but here is the repo: https://github.com/dev-campos/mbpower

I have tried several different ways to get this website hosted and this is the farthest I got, this is the last step I haven't been able to get to work, so I'm afraid to try messing around too much and breaking the rest.


Solution

  • As awran5 said I just needed to change the domain to the correct IP.