1、实现目的 输入www.123.com可以访问tomcat页面 。 2、准备 1)windows下在hosts文件中配置映射 2)配置nginx 3)启动nginx和tomcat 3、测试 访问url:www.123.com 可以看到测试成功。