Static IP redirection to ERPNext Sites

Alright @JayRam,

Will wait for your reply, since I believe once we are able to open the ERPNext screen using the Local-IP, Static-IP or Sub-Domain, issue is resolved.

@mishrankit

There can be caused by a few things

  1. DNS Propagation – its probably still caching old DNS records
    – Ping the sub-domains and check that they are responding, this checks DNS has propagated
    – Do a dig command and see that the subdomains return the IP you’ve assigned
  2. Misconfigured NGinx - The subdomains have not been setup in nginx.conf in the frappe-bench folder, check that they have.
  3. Reboot your server for changes to take effect.

Well, maybe the domain based multi-tenancy will not respond to IP Addresses. Since the basic site is responding, the ERPNext side of things seem to be fine. I think you need to name your sites as the hostname that resolves to it. Like you need to call your site site1.company.com and site2.company.com and actually point the domains site1.company.com and site2.company.com on your company.com accounts to the same static IP like 123.45.67.89.

Please check and confirm you’ve done this.

If you still have a problem, maybe its time you shared the domain names and the static IP.

Thanks

Jay

Hi I tried Reboot, now it has stopped the Static IP and Local IP mapping.

My Static IP shows a different page and my Public IP shows a different page, which was the same earlier.

Hi @JayRam,

Can we have a skype call so that I can share the details and even show the exact issue.

My skype id: ankit.mishra.009

Please do let me know your availability to discuss the same over skype.

Thanks @JayRam, @saidsl,

I appreciate you guys going out of the way and helping resolve this issue.

Finally what worked was mapping between sub-domain and site.

Given below command worked well in my cases.

bench setup add-domain --site old-site.name sub.your-domain.com
bench setup nginx

Thanks once again @saidsl & @JayRam and other member as well who replied at the initial stages.