Use the host computer as the server, now you have placed a site, do not want to place a site (the two sites have different languages)?

use the host computer as the server, now you have placed a site, do not want to place a site (the two sites have different languages)?

Jan.14,2022

if there is a corresponding environment (runtime)


the simple answer is can

but now that you have asked this question, the solution is not easy for you.

the basic idea is to use ngixn as a HTTP server to receive various requests, and then nginx forwards the request to the corresponding back-end server according to the requested domain name.
A computer can run a lot of services as long as it performs ok. As @ luzemin and @ yuanxiaowa say, as long as there is a corresponding environment, you can open different ports to start a new site.


Yes, reopen a port

Menu