new a server code in swoole is as follows:
$serv = new swoole_server("127.0.0.1", 9501);
now I want to create a HTTP server. I need to bind two domain names (www.a.com and www.b.com). After testing, the code is as follows
$serv = new swoole_server("www.a.com", 9501);
< H2 > question < / H2 >
- how can I implement a virtual host like apache httpd or nginx? That is, when multiple domain names are bound to the same ip, when accessed with different domain names, the content will be different?