ERPNext DNS Multitenant v6

Hello.

I’m trying to run two sites on one server on Google Cloud with Ubuntu 14.04.

Currently I have two sites

site1.local
dev

I access site1.local at demo.domain.com and would like to access dev at dev.domain.com

However, when I go to dev.domain.com, the URL points to the site1.local site, I thought that DNS multi tenancy would automatically resolve based on the site name. (dev).

Is there something else I’m missing? I followed exact instructions on

note: All DNS A records are being managed by my hosting provider.

Thanks

Hey, the site name should be the same as the domain name you’re trying to use. However, you can add:

"host_name": "http://dev.domain.com"

to your site_config.json in your site folder, and that should make it work.

1 Like

Yeah, I’ve renamed both site_config files as you suggested.

Let me try re naming the site with the FQDN, I’ll let you know if it works.

Thanks @vjFaLk

OMG. It worked.

Thanks again! @vjFaLk