Bad gateway on creatin of new site

Hi, “easy install” worked like a charm. however, after adding another site, I start getting a 502 error.

Any help will be appreciated.

try adding an entry for to the hosts file

after adding another site

By switching on dns-multitenancy, the catch-all from the initial setup might have stopped working. I am assuming your first page is still sites/site1.local? Can you try

bench use site1.local

Alternatively, make sure the site is called the same way as its host name. If you haven’t used it much, the easiest might be to create a new site with

bench new-site magnolia.(...)
bench install-app --site magnolia.(...) erpnext

Hope this helps.