Single domain, multi-VPS How to configure?
I have a domain name and now want to place website files on different VPS according to different languages
zh.mydomain.com Mapping to Vps1
en.mydomain.com Mapping to VPS2
Jp.mydomain.com and kr.mydomain.com map to VPS3
The whole domain share a user database, put VPS2 on, how to operate?
What aspects do you need to set up? (Dns,httpd.conf,.htacess,ip,mysql connection ... )
Is there a tutorial or blog post for reference?
Thank you.
share to: more
------Solution--------------------
Since there is a domain name, the domain name provider will provide DNS resolution. You can log in to your own configuration under.
1. Configure your DNS's a record to correspond to the IP address of the VPS similar to this:
A record IP
ZH Vps1_ip
En vps2_ip
JP Vps3_ip
KR vps3_ip
2. mysql Create a unified telnet account
Direct access to the appropriate domain name is available.