Antonwy
Antonwy

Reputation: 51

Nginx and DigitalOcean doesn't work with 'www'

I'm pretty new to the whole server, Nginx and DigitalOcean topic... I deployed my website and when one tries to open the website over the url: 'antonwy.com' or 'http://antonwy.com' everything works, but if you use 'www.antonwy.com' it doesn't work...

My Nginx config:

server {
   listen 80 default_server;
   root /var/www/antonwy.com;
   server_name www.antonwy.com antonwy.com;
   index index.html index.htm;
   location / {
   }
}

Thanks in advance!

Upvotes: 1

Views: 279

Answers (1)

Ahmed Abdelazim
Ahmed Abdelazim

Reputation: 741

it's DNS entry issue. add A or CNAME record for www

Upvotes: 1

Related Questions