Why does Gunicorn use port 8000/8001 instead of 80?

I am busy setting up a development environment for the Django Framework using Gunicorn (as a Django service) and NGINX (as a reverse proxy).

When I watch a few tutorials like this one, and this , I see that they use port 8000 and port 8001 ( http://127.0.0.1:8000and http://127.0.0.1:8001). Is there a special reason not to use port 80 like any other web server?

Port 8000 is often used for streaming radio and malware, so why?

BTW: I run it using Virtualenv on a Ubuntu 12.04 system.

+3
source share
2 answers

NGINX 80 Gunicorn. Gunicorn 127.0.0.1 IP, 0.0.0.0, , - 80.

+1

1024 . root , , gunicorn root.

nginx 127.0.0.1:80, - 80 - , 8000, nginx, :

server {
        location / {
                proxy_pass http://127.0.0.1:8000;
        }
}
+10

All Articles