windwos的 hosts文件中的ip和域名对应:
10.1.1.2  a是有效的,
但是如何设置10.1.1.2  a.b.c这样的对应关系
然后生效?

---------------------------------------

解决方案 »

  1.   

    如果这样设置了10.1.1.2 a.b.c
    可以ping通,但是浏览器无法访问??
      

  2.   

     有代理的话可以设定 a.b.c 不在代理范围内即可。 
      

  3.   

    # 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
    他上面写的是可以的,
    但是为什么不能访问呢?
      

  4.   

    如果一个单点系统访问了http://sso.abc.com(可以访问到应用系统app)
    然后应用系统重定向到了http://app.abc.com(是同一个应用系统app)
    可以用 domain吗?
    实现跨域cookie吗?