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

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

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

    This Is A FineDay

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      93 隨筆 :: 0 文章 :: 69 評論 :: 0 Trackbacks
    Apache和Tomcat連接的方法大致有JK1.x, JK2, mod_webapp三種connector可以使用,下面簡單說明一下
    ? Apache2.0.50 + Tomcat5.0.29 + mod_jk2的連接方法,環境為windows XP

    1、下載:
    ?????? apache2.0.50從http://apache.org下載
    ?????? tomcat5.0.28從http://jakarta.apache.org下載
    ?????? module_jk2從http://jakarta.apache.org下載


    2
    ????? Apache到D:\Apache Group\Apache2
    ????? Tomcat到E:\work\jakarta-tomcat-5.0.28
    ????? module文件為jakarta-tomcat-connectors-jk2.0.4-win32-apache2.0.49.zip 解壓縮,將modules/mod_jk2.so拷貝到
    ???? D:\Apache Group\Apache2\modules下,conf/workers2.properties.sample拷貝到D:\Apache Group\Apache2\conf下,
    ???? 并改名為worker1.properties
    3、修改D:\Apache Group\Apache2\conf\httpd.conf,增加
    ???? LoadModule jk2_module "modules/mod_jk2.so"
    ???? JkSet config.file "conf/workers2.properties"
    ???
    ??? Apache配置完畢,重新啟動Apache
    4、tomcat默認支持ajp1.3的jk2連接,所以只需要配置apache就可以,剩下的就是將需要訪問的目錄增加到
    ???? worker2.properties就可以了,默認為
    [shm]
    info=Scoreboard. Requried for reconfiguration and status with multiprocess servers.
    file=anon

    # Defines a load balancer named lb. Use even if you only have one machine.
    [lb:lb]

    # Example socket channel, override port and host.
    [channel.socket:localhost:8009]
    port=8009
    host=127.0.0.1

    # define the worker
    [ajp13:localhost:8009]
    channel=channel.socket:localhost:8009
    group=lb

    # Map the Tomcat examples webapp to the Web server uri space
    [uri:/examples/*]
    group=lb

    [status:]
    info=Status worker, displays runtime information

    [uri:/jkstatus/*]
    info=The Tomcat /jkstatus handler
    group=status:
    [shm]
    info=Scoreboard. Requried for reconfiguration and status with multiprocess servers.
    file=D:/Apache Group/Apache2/logs/jk2.shm
    size=1048576

    需要修改一下apache的默認目錄,然后我增加了兩個目錄/servlets-examples和/axis,得到如下

    # Defines a load balancer named lb. Use even if you only have one machine.
    [lb:lb]

    # Example socket channel, override port and host.
    [channel.socket:localhost:8009]
    port=8009
    host=localhost

    # define the worker
    [ajp13:localhost:8009]
    channel=channel.socket:localhost:8009
    group=lb

    # Map the Tomcat examples webapp to the Web server uri space
    [uri:/jsp-examples/*]
    group=lb
    [uri:/bbs/*]
    group=lb
    [uri:/servlets-examples/*]
    group=lb
    [uri:/axis/*]
    group=lb
    [status:]
    info=Status worker, displays runtime information

    [uri:/jkstatus/*]
    info=The Tomcat /jkstatus handler
    group=status:

    [uri:/*.jsp]
    worker=ajp13:localhost:8009
    ????
    重新啟動apache,tomcat
    訪問
    http://localhost/jkstatus/
    http://localhost/servlets-examples/
    http://localhost/axis/
    http://localhost:8080/servlets-examples/
    http://localhost:8080/axis
    看一下結果,如果還要增加新的目錄,只要照上面操作即可

    posted on 2007-04-05 16:31 Peter Pan 閱讀(393) 評論(0)  編輯  收藏 所屬分類: J2EE
    主站蜘蛛池模板: 少妇人妻偷人精品免费视频| 人妻无码中文字幕免费视频蜜桃 | 国产男女猛烈无遮挡免费视频网站 | AA免费观看的1000部电影| 亚洲一本综合久久| 久久99精品国产免费观看| 亚洲色四在线视频观看| 午夜免费福利视频| 亚洲大香人伊一本线| 亚欧国产一级在线免费| 日韩视频在线精品视频免费观看| 亚洲男人的天堂在线| 嫩草视频在线免费观看| WWW国产亚洲精品久久麻豆| 亚洲国产精品毛片av不卡在线| 国产一级高青免费| 久久综合亚洲色一区二区三区| 久久久久久免费视频| 羞羞漫画小舞被黄漫免费| 亚洲αv久久久噜噜噜噜噜| 18禁成人网站免费观看| 亚洲人成无码网站在线观看| 亚洲av高清在线观看一区二区 | 亚洲成av人片天堂网老年人| 99re6在线精品免费观看| 亚洲精品国产成人| 日韩亚洲欧洲在线com91tv| 91大神免费观看| 亚洲日韩国产欧美一区二区三区 | 亚洲熟女乱色一区二区三区| 国产免费观看网站| 亚洲av无码专区在线| 国产乱子伦片免费观看中字| 国产一区二区三区免费| 亚洲综合一区国产精品| 中文字幕无码精品亚洲资源网| 欧洲一级毛片免费| 亚洲国产成人精品激情| 国产精品亚洲综合专区片高清久久久| 最近中文字幕国语免费完整 | 亚洲精品视频在线观看免费|