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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -