0

I have a Python-application with a Bottle-webserver running with port 8080. Now i will connect Nginx to the Bottle-webserver with a wsgi-file.

Now, i have a wsgi-file, but how can i execute this with Nginx? Which commands in the Nginx- configuration (default.conf) do i need? Maybe my way of thinking is wrong. Can someone give me some clarity?

I have this in the Nginx-config:

server {
  location / {
    include uwsgi_params;
    uwsgi_pass 127.0.0.1:8080;
  }
}

For now i see the error (111: Connection refused) while connecting to upstream) in the logs.

Anyone an idea?

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940
  • This is NOT off-topic, this is just question about servers, and not about other things like cows and calfs. I think this is a mistake ;-)? Anyway... for now i have an error, and i don't know why! I'm just curious to the solution ;-) –  Nov 05 '14 at 17:40

1 Answers1

2

Your Bottle server is either not running, or listening on a port other than 8080.

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940