Report this

What is the reason for this report?

Error while creating Virtual Host on Nginx

Posted on January 18, 2016
Khay

By Khay

Hi,

I am currently creating new virtual host on my droplet which is already installed Ghost (blog) via DigitalOcean’s Ghost Application. I tried to set up virtual host using this guide, but it is not working correctly.

My root directory is under var/www . New config for sites-available is as below:

server {
        listen 80; ## listen for ipv4; this line is default and implied
        #listen [::]:80 default ipv6only=on; ## listen for ipv6

        root /var/www/test;
        index index.html index.htm;

        # Make site accessible from http://localhost/
        server_name arkaraung.me;
}

And also added new domain in /etc/hosts file. (let say my ip is 111.111.111.111)

111.111.111.1111 arkaraung.me

Please let me know if there is something wrong with my doing. And also please tell me what should I do. 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.