On a production setup, you can change the port to your preference like this… (as user frappe)
cd ~/frappe-bench
bench set-nginx-port erp-dev.example.com 8120 #nginx.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
bench setup nginx
sudo systemctl reload nginx
Have you checked that there is nothing running on the default port 443?
You also need to open the port on your firewall.
I recommend changing to a non-standard port to ensure that there is no clash.
Maybe try setting it to 8443 or something simple to remember
@trentmu and @rmehta, can help me to brows erpnext system from other out side computer. i can ping to my public ip and domain name, but can’t brows the erp system. my hosts file:
local ip erpdev.example.com
nginx/conf.d/frappe-bench.conf file
upstream erp-frappe {
server 127.0.0.1:8000 fail_timeout=0;
}
upstream erp-socketio-server {
server 127.0.0.1:9000 fail_timeout=0;
}
If you have the IP and DNS set for erpdev.example.com, then this should work
cd ~/frappe-bench
bench set-nginx-port erpdev.example.com 8443 #nginx.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
bench setup nginx
sudo systemctl reload nginx
@trentmu
when i run (bench set-nginx-port erpdev.example.com 8443) this command, my port is auto configure to 80. i don’t know why. and after that can’t run nginx.
@trentmu, now when i run nginx it give this error:
Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details.
@trentmu, i have solved nginx, but when i brows from browser, it give nginx page. i can ping my erp sub domain and public ip too. but when i brows using domain name, it give nginx page not the erp login page
You are probably specifying the wrong port in the URL. If it shows the default nginx page, it is probably looking at port 80 instead of port 8080, or 8000
i can open by using port number (erp.example.com:443). but port is ssl. i can’t open page not using port. i dose not want to use port number after url.