Setup Production Issue

Hi ,
In development setup
by doing bench start my server works well on SERVER_IP:8001

To setup production I tried following command:

sudo bench setup production ujjawal
bench restart

It works well (as shown in screenshot)

Now when I am trying SERVER_IP:80 or just SERVER_IP, It shows following error:

This site can’t be reached
SERVER_IP refused to connect.

I tried sudo bench serve --port 80
It gives socket.error: [Errno 13] Permission denied

I tried bench serve --port 8000
SERVER_IP:8000 worked but server stops by doing ctrl+c

Don’t know what is going wrong.

erpnext 8.0.40 (master)
frappe 8.0.60 (master)

If you wish to access server using ip address add default_server in config/nginx.conf
refer: Server names

1 Like