Question

site not connect

Posted March 5, 2014 1.4k 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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
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
Submit an Answer