Configuring nginx

I have an issue configuring nginx

My app sitting in /var/webapi

My config sitting in /etc/nginx/sites-available/webapi

server { listen 80; xxxxx-xxx.members.linode.com;

        location / {
                proxy_pass http://localhost:5000;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection keep-alive;
                proxy_set_header Host $host;
                proxy_cache_bypass $http_upgrade;
        } }

I am running my webapi in port 5000:

Me@ubuntu:~$ dotnet /var/webapi/WebApi.dll
Hosting environment: Production
Content root path: /home/Me
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.

When I am navigating xxxxx-xxx.members.linode.com the browser I am getting 404 error - no any page displayed

Need help.

1 Reply

A 404 error typically means that your web server is not able to locate the file that should be served at that location. This error points to an issue with the internal configuration of your server.

These links attached below might help you:

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct