<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    gembin

    OSGi, Eclipse Equinox, ECF, Virgo, Gemini, Apache Felix, Karaf, Aires, Camel, Eclipse RCP

    HBase, Hadoop, ZooKeeper, Cassandra

    Flex4, AS3, Swiz framework, GraniteDS, BlazeDS etc.

    There is nothing that software can't fix. Unfortunately, there is also nothing that software can't completely fuck up. That gap is called talent.

    About Me

     

    Tomcat域名配置

    Tomcat域名配置
     

    打開tomhome/conf/下的server.xml

    添加以下內容:

    <Host appBase="C:/aaaa" autoDeploy="true" debug="0" deployXML="true" liveDeploy="true" name="www.xxxxxxxx.com" unpackWARs="true">
    <Context cachingAllowed="true" cookies="true" crossContext="true" debug="0" docBase="C:/aaa/bbb" path="" privileged="false" reloadable="true" swallowOutput="false" useNaming="true" >
    </Context>
    </Host>
    僅僅這樣還是不夠的,配置后,現在輸入http://localhost:8080/以及你的IP:8080是沒有問題,可是要想從外網訪問就必需配置你的hosts文件了。

    windows服務器在:C:\WINNT\system32\drivers\etc\下,直接用記事本打開就可以了
    例:

    # 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
    *.*.*.*           www.***.com

    linux服務器在/etc/下,命令行下:vi hosts

    例:
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1        localhost.localdomain    localhost        lkpor1
    *.*.*.*           www.***.com

    如果在Tomcat下面配置域名(如:www.***.com)的時候,同時又不希望客戶通過我們網站的IP或者域名訪問到Tomcat默認的ROOT,配制方法如下:
    1、打開Tomcat安裝目錄下的\conf\server.xml文件
    2、在server.xml中將原有的<Host name=“localhost“ appBase=“webapps“ ……>修改為<Host name=“您要配置的域名“ appBase=“webapps“……>
    3、在\conf\Catalina目錄下建立目錄“<您要配置的域名的名稱>”,然后建立ROOT.xml文件,其格式和\conf\localhost目錄下的ROOT.xml一致,但是內容如下:
       <?xml version='1.0' encoding='utf-8'?>
       <Context displayName="Welcome to 56World!" docBase="D:\workplace\inbuilding" path="">
       </Context>
    其中docBase中的內容就是你希望的打開您的域名(www.***.com) 的時候映射到的目錄和默認的網頁(如:index.jsp)
    4、啟動Tomcat服務器,就可以直接敲入域名訪問你要訪問的地址了。

    posted on 2007-09-14 17:28 gembin 閱讀(492) 評論(0)  編輯  收藏


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     

    導航

    統計

    常用鏈接

    留言簿(6)

    隨筆分類(440)

    隨筆檔案(378)

    文章檔案(6)

    新聞檔案(1)

    相冊

    收藏夾(9)

    Adobe

    Android

    AS3

    Blog-Links

    Build

    Design Pattern

    Eclipse

    Favorite Links

    Flickr

    Game Dev

    HBase

    Identity Management

    IT resources

    JEE

    Language

    OpenID

    OSGi

    SOA

    Version Control

    最新隨筆

    搜索

    積分與排名

    最新評論

    閱讀排行榜

    評論排行榜

    free counters
    主站蜘蛛池模板: 国内精品久久久久影院亚洲| 拍拍拍无挡视频免费观看1000| 亚洲精品麻豆av| a级精品九九九大片免费看| 亚洲综合男人的天堂色婷婷| 日韩成人在线免费视频| 两性色午夜视频免费播放| 亚洲制服丝袜精品久久| 亚洲国产精品一区二区第一页免| 国产精品免费高清在线观看| 亚洲乱色伦图片区小说| 亚洲精品成人片在线播放 | 成人免费a级毛片无码网站入口 | 18级成人毛片免费观看| 免费人成网站永久| 亚洲美女免费视频| 亚洲真人无码永久在线观看| 亚洲国产人成中文幕一级二级| 97在线视频免费播放| 校园亚洲春色另类小说合集| 亚洲大片在线观看| 亚洲国产成人久久综合野外| 亚洲成人免费在线观看| 一个人看的www免费高清| 亚洲国产成人手机在线电影bd | 69免费视频大片| av片在线观看永久免费| 亚洲成a人片在线观看精品| 亚洲国产精品无码专区影院| 免费a级毛片永久免费| 精品久久久久久久久免费影院| 中文字幕在线免费视频| 亚洲国产精品成人午夜在线观看| 亚洲高清视频在线播放| 中文字幕亚洲天堂| 又爽又高潮的BB视频免费看| 成年人网站免费视频| 久久国产精品免费专区| 久久九九久精品国产免费直播| 久久精品国产亚洲av瑜伽| 亚洲日本va在线观看|