如何在tomcat中配置虚拟主机,紧急求助各位高手,帮我看看我的dns配的对不对
我已经在tomcat下配置了虚拟主机,但是我不知道应该在dns中怎么弄,在网上查了一下说是在C:\WINDOWS\system32\drivers\etc\host文件中进行注册,这是我的注册部分
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '# ' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
127.0.0.1 www.mycompany1.com
127.0.0.1 mycompany1.com
其中www.mycompany1.com、mycompany1.com为虚拟机地址,可是这样做了仍然说找不到地址,请问该如何弄谢谢
------解决方案--------------------ping www.mycompany1.com一下看看。