2222 Login Page Work [2027]

While port 2222 is not a default port, it is . Always:

server listen 2222; server_name example.com; location /login proxy_pass http://127.0.0.1:5000; proxy_set_header Host $host; 2222 login page work

Firewall (local or network) is blocking port 2222. While port 2222 is not a default port, it is

to the server on port 2222.