Report this

What is the reason for this report?

Access website only through ip with nginx

Posted on June 25, 2015

Hi, I’m new to DigitalOcean. I just configured my first droplet installing Ubuntu and a LEMP stack. At the moment I don’t have a domain to use and wanted just to do some tests. I followed this guide to create a Server Block: https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-14-04-lts

I changed the root line to this:

root /var/www/bbb15.it/html;

and the server_name to my ip.

Nginx is working, but if I try to access the website using ip_address/bbb15.it it doesn’t work.

What can it be? How can I debut the issue?

Thanks

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.