In a production environment - on the erpnext host only -
this works
http://localhost
but this don’t
http://erp.dom.local
And before you say DNS then
user@erp:~$ dig erp.dom.local
;; ANSWER SECTION:
erp.dom.local. 604800 IN A 192.168.x.y
;; AUTHORITY SECTION:
dom.local. 604800 IN NS ns2.dom.local.
dom.local. 604800 IN NS ns1.dom.local.
;; ADDITIONAL SECTION:
ns1.dom.local. 604800 IN A 192.168.x.y1
ns2.dom.local. 604800 IN A 192.168.x.y2
I have replaced curls localized error-message with the equivalent chromium-message
user@erp:~$ curl -vvv http://erp.dom.local
* Rebuil URL to: http://erp.dom.local/
* Hostname was NOT found in DNS cache
* Trying 192.168.x.y...
* connect to 192.168.x.y port 80 failed: ERR_CONNECTION_TIMED_OUT
* Failed to connect to erp.dom.local port 80: ERR_CONNECTION_TIMED_OUT
* Closing connection 0
curl: (7) Failed to cennect to erp.dom.local port 80: ERROR_CONNECTION_TIMED_OUT