Why Nginx showing me Nginx's welcome page instead of my home page??

I am using django and gunicorn to run my website I do everything to run my site but when I am going to search my domain name it show me the welcome page of nginx.

This is my harshblog.socket file

Description=gunicorn socket



This is my harshblog.service file

Description=gunicorn daemon

ExecStart=/home/harsh/harshblog/env/bin/gunicorn \
    --access-logfile - \
    --workers 3 \
    --bind unix:/run/harshblog.sock \



This is my site-enabled file

server {
    listen 8000;

    location = /favicon.ico { access_log off; log_not_found off; }
    location /static/ {
        root /home/harsh/harshblog;

    location / {
        include proxy_params;
        proxy_pass http://unix:/run/harshblog.sock;

I used port 80 also but it can’t solve my problem. So, Please help me I am in trouble.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @harshku2630,

First, you need to set the listen directive to port 80 rather than 8000. After that in your server_name directive, add and not only one of them.

Restart Nginx and see if that would work for you.