ubuntu - Configure Nginx on digitalocean -
ubuntu - Configure Nginx on digitalocean -
i got new digitalocean server yesterday, , can't work. i'm using lemp stack on ubuntu 14.04.
my website not yet on server, i'm pointing standard nginx html directory /usr/share/nginx/html;
i've reinstalled nginx once. when reinstall, works, add together much space default config file in /etc/nginx/sites-available/ stops working
chrome gives me
err_connection_refused
i did request postman, , response code 0. can ping both server's ip address , domain name (vandevliet.me) , gets response back.
this nginx default file (without commented out server blocks)
server { hear 80 default_server; hear [::]:80 default_server ipv6only=on; root /usr/share/nginx/html; index index.html index.htm; # create site accessible http://localhost/ server_name localhost; location / { try_files $uri $uri/ =404; } }
and /etc/hosts file
127.0.0.1 localhost
as see, right out box. haven't changed tad.
in root section of server block, tried adding "/" @ end of path, no success;
thanks time.
ubuntu server digital-ocean
Comments
Post a Comment