site not connect

March 5, 2014 889 views
my domain is: http://habersabah.com i can make connect ssh over but site cant and i can connect ip over I did all of the instructions https://digitalocean.com/community/articles/how-to-install-wordpress-nginx-php-and-varnish-on-ubuntu-12-04 what is the problem
3 Answers
I can connect to your site -- it loads fine. Can you try again?
i solved it but now not can connect www.
for the www. thing, you need to do this:

server {
listen 80;
server_name habersabah.com;
return 301 http://www.habersabah.com$request_uri;
}

server {
listen 80;
server_name www.habersabah.com;
#The rest of your vhost settings#
.............................
................................
}

That supposed to be in your /etc/nginx/sites-available/your-vhost-block
Have another answer? Share your knowledge.