Nginx is not responding to domain name
I registered a domain name at namecheap (let’s say is zxcvb.me). Then I tried to configure a react app in Nginx. This is my config, called zxcvb.me
server {
listen 80;
listen [::]:80;
root /home/ubuntu/portfolio/react/build;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name zxcvb.me www.zxcvb.me;
location / {
try_files $uri /index.html;
}
under /etc/nginx/sites-available. Then I used sudo ln -s /etc/nginx/sites-available/zxcvb.me /etc/nginx/sites-enabled/ then sudo systemctl restart nginx
But the website just won’t load. Anyone knows why? (Running on Ubuntu)
Read more here: Source link

