Multi domain support

I I have two domain names: www.a.com and www.a.cn
The default domain name for doc server is doc.a.com,
doc.a.cn can be accessed through nginx proxy_pass to doc.a.com,
doc.a.com is working properly ,doc.a.cn page can be displayed normally but document cannot be created or opened properly. We found that when accessing doc.a.cn, it is still accessing doc.a.com internally
How to make both domains accessible normally?

Hello @xuxiaofei

What is your final goal? Do you want to run single Document Server on several domains, i.e. integrating one Document Server with separate applications?

Directly accessing doc.a.com is relatively slow, so we use doc.a.cn for transit (doc.a.com is in Singapore, doc.b.cn is in Hong Kong)

here is my nginx.conf

image

I’m afraid we do not have any proxy samples for such configuration.