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 browser at 2005-12-13 00:52
本主題所含的標籤
無標籤
作者 【請問】是否有tomcat5+Apache 2 + windows xp整合步驟 [精華]
nickck





發文: 4
積分: 0
於 2005-11-25 13:00 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
請問大大有沒有如下的詳細整合範例
因為找到的書都是寫Linux居多 小弟我的平台是windows
tomcat 5.0
apache 2
Windows XP

麻煩提供mod_jk2連結器的網址及詳細的步驟說明
因為小弟找不到連結器的網址 麻煩了


nickck edited on 2005-11-25 13:02
reply to postreply to post
作者 Re:【請問】是否有tomcat5+Apache 2 + windows xp整合步驟 [Re:nickck]
wooesh





發文: 2
積分: 0
於 2005-12-13 00:29 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
1) using enviroment: Tomcat 5.0.28(for win32) & Apache 2.0.55(for win32) / windxp sp2 / J2SDK 1.4.2.08

2) at Apache 2 Installing path, create fiel conf/workers.properties:
refer to : http://tomcat.apache.org/connectors-doc-archive/jk2/jk/quickhowto.html

# Just like workers.properties but exact line is prefixed
# with JkWorkerProperty

# Minimal jk configuration
JkWorkerProperty worker.list=ajp13w
JkWorkerProperty worker.ajp13w.type=ajp13
JkWorkerProperty worker.ajp13w.host=localhost
JkWorkerProperty worker.ajp13w.port=8009

# Define 1 real worker using ajp13
worker.list=worker1

# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300

3) at the same directory, open the file httpd.conf, then at the end of content to append these:
pls refer to: http://tomcat.apache.org/connectors-doc/config/apache.html

# ---------------------
# jasonhu 2005/12/12
# ---------------------
LoadModule jk_module modules/mod_jk.so
JkMountFile conf/uriworkermap.properties
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkRequestLogFormat "%w %V %T"
JkOptions +ForwardKeySize +ForwardURICompat +ForwardURIEscaped +ForwardDirectories +ForwardLocalAddress
#JkEnvVar SSL_CLIENT_V_START

# enter the full path to the tomcat webapps directory
JkAutoAlias ../Tomcat5028/webapps
# there above the full path can be: d:/App../Tomcat5/webapps

# Mount 'servlets-examples' directory. It's physical location
# is assumed to be in the /opt/tomtact/webapps/servlets-examples
# ajp13w is a worker defined in the workers.properties
#JkMount /servlets-examples/* ajp13w
JkMount /servlets-examples/* worker1
JkMount /bbscs6/* worker1

# Unmount desired static content from servlets-examples webapp.
# This content will be served by the httpd directly.
#JkUnMount /servlets-examples/*.gif ajp13w
#JkUnMount /servlets-examples/*.jpg ajp13w

# --- 2005/12/12 END ---

4) ok, restart tomcat5 then restart the apache2 service. test it!


reply to postreply to post
作者 Re:【請問】是否有tomcat5+Apache 2 + windows xp整合步驟 [Re:nickck]
butalpha





發文: 5
積分: 0
於 2006-08-19 11:32 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
我的開發環境
apache 1.3.31、tomcat 5.5.17、mod_jk 1.2.6_1.3.31、jdk1.5.0_06、win XP SP2

感謝上面那位仁兄,按照上面的方法操作,並且參考以下兩個網址
http://tomcat.apache.org/connectors-doc-archive/jk2/jk/quickhowto.html#Minimum%20Apache%20WebServer%20configuration
http://tomcat.apache.org/connectors-doc-archive/jk2/jk/aphowto.html

最後成功可以跑了,也就是說
http://IP/servlets-examples/
有成功的畫面出現

但現在還有三個問題尚未解決:
1.為什麼現在我在網址列打入 http://localhost/servlets-examples 卻無法存取了?(You don't have permission to access /servlets-examples/ on this server.)

2.在我的 webapps 資料夾裡有自行新增一個 myapp 資料夾,當我在網址列打入http://IP/myapp/welcome.html 卻顯示 The requested URL /myapp/welcome.html was not found on this server.
不知道缺少了什麼設定

3.JkMountFile 這個指令有什麼功用,好像跟我第二個問題有關?如何設定?(我找好久找不到詳細說明)

有哪位可以為我解惑嗎?感激不盡


reply to postreply to post
作者 Re:【請問】是否有tomcat5+Apache 2 + windows xp整合步驟 [Re:butalpha]
butalpha





發文: 5
積分: 0
於 2006-08-20 20:23 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
butalpha wrote:
我的開發環境
apache 1.3.31、tomcat 5.5.17、mod_jk 1.2.6_1.3.31、jdk1.5.0_06、win XP SP2

感謝上面那位仁兄,按照上面的方法操作,並且參考以下兩個網址
http://tomcat.apache.org/connectors-doc-archive/jk2/jk/quickhowto.html#Minimum%20Apache%20WebServer%20configuration
http://tomcat.apache.org/connectors-doc-archive/jk2/jk/aphowto.html

最後成功可以跑了,也就是說
http://IP/servlets-examples/
有成功的畫面出現

但現在還有三個問題尚未解決:
1.為什麼現在我在網址列打入 http://localhost/servlets-examples 卻無法存取了?(You don't have permission to access /servlets-examples/ on this server.)

2.在我的 webapps 資料夾裡有自行新增一個 myapp 資料夾,當我在網址列打入http://IP/myapp/welcome.html 卻顯示 The requested URL /myapp/welcome.html was not found on this server.
不知道缺少了什麼設定

3.JkMountFile 這個指令有什麼功用,好像跟我第二個問題有關?如何設定?(我找好久找不到詳細說明)

有哪位可以為我解惑嗎?感激不盡


第二個問題用 JkMount 解決了

現在還有兩個問題:
1.網址列打入 http://localhost 卻顯示You don't have permission to access / on this server. 是哪一個地方的設定會導致無法存取 localhost 的結果呢?

2.原本在本機上 apche web server 有放我的個人網頁,但是結合apache和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