Check the folder/directory under sites, I am guessing its still site1.local, as it does not change when you
bench setup add-domain --site site1.local erp.domain.com
Check the nginx.conf in frappe-bench/config/ if the site is pointing to the rite folder/directory.
A couple of things you can do.
- Change the folder name manually
- bench setup nginx again and make sure nginx picked up on that manual change
- Possibly change in nginx.conf manually as well if it didn’t pick up that change (make sure its the nginx in the frappe-bench/config/nginx.conf)
Hope this helps.