Aaa there’s so much happening here!
Okay, so:
- Make sure DNS Multitenancy is ON
- Make sure the exact domain you want to use is the name of the site in bench
- Make sure there is no currentsite.txt inside sites, if there is, delete the file
4a) Either add an A record with the right subdomain on your DNS or
4b) Add an entry in /etc/hosts (C:\Windows\System32\drivers\etc\hosts if you’re accessing the site from Windows
) file pointing your subdomain name to the DO IP like this :
123.456.678 subdomain.website.com
Make sure to add the entry on the OS where you’re ACCESSING the site from, not where ERPNext is being served from.
Also generate nginx config again just in case using bench setup nginx followed by restarting nginx by doing sudo service nginx restart