JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Application Server » Tomcat  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to topicthreaded modego to previous topicgo to next topic
己加入精華區
by koji at 2008-08-29 10:39
本主題所含的標籤
無標籤
作者 mod_jk 多個DNS對應到一個IP,無法顯示圖片? [精華]
doris715





發文: 167
積分: 0
於 2008-08-27 11:30 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
可以向大大們請教一下,
若是有兩三個DNS的對應,應該要怎麼設定呢?

我有嘗試在TOMCAT設定:
1
2
3
4
5
6
7
<Host name="test.com.tw" debug="0" appBase="D:\tomcat-4.1.30\daip"
       unpackWARs="true" autoDeploy="true">
 
      <Context path="" docBase="D:\tomcat-4.1.30\daip" reloadable="true" debug="0"/>
    <Logger className="org.apache.catalina.logger.FileLogger"
        directory="logs/test.com.tw" prefix="log." suffix=".txt" timestamp="true"/>
</Host>

可是會沒有出現圖片,但是網頁有正常出現,可以向大大們請問一下為什麼呢?謝謝!

其他相關設定如下:
httpd.conf
1
2
3
4
5
6
7
8
LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkShmFile logs/mod_jk.shm
JkLogLevel info
JkMount /*.jsp router
JkMount /*.html router
JkMount /*.htm router


workers.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  # The advanced router LB worker
  worker.list=router
 
  # Define a worker using ajp13
  worker.tomcat1.port=8009
  worker.tomcat1.host=192.168.3.101
  worker.tomcat1.type=ajp13
  worker.tomcat1.lbfactor=1
  # Define prefered failover node for tomcat1
  #worker.tomcat1.redirect=tomcat2
 
  # Define another worker using ajp13
  worker.tomcat2.port=8009
  worker.tomcat2.host=192.168.3.102
  worker.tomcat2.type=ajp13
  worker.tomcat2.lbfactor=1
 
  
  # Define the LB worker
  worker.router.type=lb
  worker.router.balance_workers=tomcat1,tomcat2


我自己的猜測:
只要輸入http://AAAAAA/test --->會導到tomcat設定的test目錄下
若是http://bbbbb --->會導到apache的documentroot,所以才會找不到圖片

可是我還是不知道要改什麼設定,才可以正常運作!!!


doris715 edited on 2008-08-27 15:03
reply to postreply to post
作者 Re:mod_jk 多個DNS對應到一個IP,無法顯示圖片? [Re:doris715]
doris715





發文: 167
積分: 0
於 2008-08-29 10:36 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
後來經過多次試驗後,我發現要把
httpd.conf要修改成以下
1
2
3
4
5
6
7
8
9
LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkShmFile logs/mod_jk.shm
JkLogLevel info
JkMount * router <--重點就是這行
JkMount /*.jsp router
JkMount /*.html router
JkMount /*.htm router

把全部的內容都導到tomcat去!


reply to postreply to post
» JWorld@TW »  Application Server » Tomcat

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8