This is an error caused by Tencent cloud machine policy, they have a rule called elastic IP, which is a paid service, if you do not pay for that, your server IP will be 127.0.0.1, but we have paid the domain name, as well we the cloud server, however, our site is fetching IP through request, so it always gets 127.0.0.1 if it is redirecting via code, the owner still hasn't customized the code yet, so, if you want to change the language and currency, just change the 127.0.0.1 to caloch.cn manually, and if you are a registered user, next time, you will visit the site with the settings you configured.
Awesome, Linux, add a host record to redirect 127.0.0.1 to the public site address?
Sadly, address written in client side code won't resolve the destination by hosts file:(
The final solution for this problem is, after tracing the code, the owner found the two dropdowns are calling a method called "setLocation" in js, and he replaced all '127.0.0.1' to
'caloch.cn'. So this functionality is OK now. Switching languages manually. Great!
There is a method writing host address to front-end, but it might be the last option the owner will take to modify back-end code, maybe in the future, coz, he wants to keep the integrity of the source code.
Nginx configuration missing caused the problems, now the owner is focusing on solving it by adding extra Nginx configurations, almost all fixed.