Report this

What is the reason for this report?

Nginix showing on homepage after setting up domain

Posted on August 8, 2020

I followed this tutorial to set up my application.

Everything was working fine when I had my IP address as the server name but now that I’ve changed the server name to my domain I’m seeing the following when I visit my domain:

"Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com.

Thank you for using nginx."

server {
    listen 80;
    server_name programaticlearning.com;

    location = /favicon.ico { access_log off; log_not_found off; }
    location /static/ {
        root /home/stephen/blog;
    }
    location /media/ {
        root /home/stephen/blog;
    }

    location / {
        include proxy_params;
        proxy_pass http://unix:/home/stephen/blog.sock;
    }
}

What could be going wrong here? From the tutorial there is a section mentioning trouble shooting nginx and that setting up the server name is the main cause of this issue. However I’ve already set up the server name with my domain name.

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.