<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

    添加以下內(nèi)容:

    <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>
    僅僅這樣還是不夠的,配置后,現(xiàn)在輸入http://localhost:8080/以及你的IP:8080是沒有問題,可是要想從外網(wǎng)訪問就必需配置你的hosts文件了。

    windows服務(wù)器在: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服務(wù)器在/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)的時(shí)候,同時(shí)又不希望客戶通過我們網(wǎng)站的IP或者域名訪問到Tomcat默認(rèn)的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一致,但是內(nèi)容如下:
       <?xml version='1.0' encoding='utf-8'?>
       <Context displayName="Welcome to 56World!" docBase="D:\workplace\inbuilding" path="">
       </Context>
    其中docBase中的內(nèi)容就是你希望的打開您的域名(www.***.com) 的時(shí)候映射到的目錄和默認(rèn)的網(wǎng)頁(如:index.jsp)
    4、啟動(dòng)Tomcat服務(wù)器,就可以直接敲入域名訪問你要訪問的地址了。

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


    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     

    導(dǎo)航

    統(tǒng)計(jì)

    常用鏈接

    留言簿(6)

    隨筆分類(440)

    隨筆檔案(378)

    文章檔案(6)

    新聞檔案(1)

    相冊(cè)

    收藏夾(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

    最新隨筆

    搜索

    積分與排名

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    free counters
    主站蜘蛛池模板: 成人免费无码精品国产电影| 亚洲乱码卡三乱码新区| 成年女人免费视频播放体验区| 中文字幕免费观看视频| 黄网站在线播放视频免费观看| 亚洲系列中文字幕| 亚洲成色WWW久久网站| 亚洲国产成人久久综合野外| 免费看无码自慰一区二区| 国产精品久久久久久久久免费| 国产免费一区二区三区不卡| 日韩久久无码免费毛片软件| 亚洲精品乱码久久久久蜜桃 | 精品日韩亚洲AV无码一区二区三区| 亚洲福利在线播放| 国产aa免费视频| 日本不卡免费新一二三区| 手机看黄av免费网址| 最近新韩国日本免费观看 | 啊灬啊灬别停啊灬用力啊免费看| 免费A级毛片无码免费视| 永久在线免费观看| 最近免费中文字幕高清大全 | 亚洲av中文无码| 免费一级毛片不卡在线播放| 国产成人免费片在线观看| 在线成人a毛片免费播放| 大陆一级毛片免费视频观看| 成人奭片免费观看| 美女被免费视频网站a国产| 国产美女无遮挡免费视频网站 | 久久国产亚洲观看| 亚洲成人动漫在线| 中文字幕在线观看亚洲| 亚洲欧洲精品视频在线观看| 亚洲精品亚洲人成在线麻豆| 亚洲人成黄网在线观看| 亚洲欧美不卡高清在线| 日韩亚洲综合精品国产| a级毛片免费观看网站| 热99RE久久精品这里都是精品免费|