标签: nginx
hostname1和hostname2表示运行nginx的主机。当用户在另一台机器上访问hostname2:80时,如何传递请求?
nginx.conf
server { listen 80; server_name localhost; # other content } server { listen 80; server_name hostname1; # other content }