tomcat服务器,6。0版本,通过域名在本机可以访问,但在外网访问不了,在外网IP可以访问,做了虚拟主机,<Engine name="Catalina" defaultHost="localhost">      <!--For clustering, please take a look at documentation at:
          /docs/cluster-howto.html  (simple how to)
          /docs/config/cluster.html (reference documentation) -->
      <!--
      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
      -->              <!-- The request dumper valve dumps useful debugging information about
           the request and response data received and sent by Tomcat.
           Documentation at: /docs/config/valve.html -->
      <!--
      <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
      -->      <!-- This Realm uses the UserDatabase configured in the global JNDI
           resources under the key "UserDatabase".  Any edits
           that are performed against this UserDatabase are immediately
           available for use by the Realm.  -->
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>      <!-- Define the default virtual host
           Note: XML Schema validation will not work with Xerces 2.2.
       -->
     
<Host name="localhost">
<Context path="/" docBase="E:\wide\road" debug="0"></Context>       </Host>望高手救我,这搞两天了,再搞不出来,会出事的

解决方案 »

  1.   

    外网的话 别人怎么知道把你的域名解析到你的IP呢?
      

  2.   

    你要找你的提供商,把你的域名绑定到你的IP上应该就可以了吧
      

  3.   

    不好意思,没讲清楚,域名在公网是可以解析的,但访问不了。
      

  4.   

    做一个映射代理应该可以解决
      

  5.   

    先试试在局域网内访问看看行不行
    1,如果行,那么你外网访问要在路由器上设置端口或IP地址映射。
    2,如果不行,那么程序配置有问题。