IIS6 + Tomcat6 設定方法

1. 先有IIS

2. 安裝JDK
- download JDK and install
- set JAVA_HOME 環境變數至 jdk 安裝目錄

3. 安裝 Tomcat
- download Tomcat and install
- set CATALINA_HOME 環境變數至 Tomcat 安裝目錄

a. 首先先依上述連結下載取得 isapi_redirect-1.2.27.dll (目前最新版本)
b. 將該dll置於一特定目錄 (如: c:\TomcatConnector)
c. 在該目錄下 建立三個config file 分別為
isapi_redirect-1.2.27.properties (主檔名與 isapi_redirectxxxx.dll 的主檔名同)
d. 下述是我針對三個檔案的設定 (可在tomcat網站看到how-to說明及這些檔案的定義)
基本上,除 uriworkermap.properties 外的兩個檔案 都大概變動不大
uriworkermap.properties看名字跟內容就知,是用來設定哪些URL Pattern

# Configuration file for the Jakarta ISAPI Redirector
# The path to the ISAPI Redirector Extension, relative to the website
# This must be in a virtual directory with execute privileges

# Full path to the log file for the ISAPI Redirector
# Log level (debug, info, warn, error or trace)
# Full path to the workers.properties file
# Full path to the uriworkermap.properties file



5. 設定IIS
a. 設定網頁服務延伸

b. 在站台上加入ISAPI filter

c. 在IIS站台上新增一虛擬目錄,命名為 jakarta 指向 Tomcat connector存放的位置
(本例為: c:\TomcatConnector),這個動作 對應到
isapi_redirect-1.2.27.properties 此設定檔內的下列設定:

d. 注意,check download 下來的 isapi_redirect-1.2.27.dll 有無被 windows 封鎖

6. restart tomcat & iis

7. 連到 http://localhost:8080/examples 與 http://localhost/examples
check IIS 是否真的把符合 /exmaples/* 的 URL request 都餵給tomcat處理

8. 恭喜~ 大功告成

9. 後記: Tomcat網站上 說明有點遺漏
a. dll 可能被block的問題 官網上沒說明到
b. 除了 IIS 網頁服務延伸設定外,在 IIS 站台上 也要設定對應所使用的ISAPI位置
c. 官網上提供修改 windows registery的做法來記錄
另外也提到可以在該 ISAPI dll 所在位置建立一isapi_redirect-1.2.27.properties
當然~ 用第二種方法 感覺比較容易 :)

12 則留言:

握緊夢想!! 提到...

作者,感謝您!! 照您的方式去弄果然很輕易地就弄出來了!!回文給您鼓勵!!^^

匿名 提到...

It's a pity you don't have a donate button! I'd definitely donate to this fantastic blog! I suppose for now i'll settle for bookmarking and adding your RSS feed to my Google account.

I look forward to new updates and will talk about this blog with
my Facebook group. Talk soon!

My homepage :: How to purchase a gynecomastiaphysician with regard to moobs therapy?

匿名 提到...

Heya! I know this is somewhat off-topic but I had
to ask. Does managing a well-established website such as yours require a lot of work?
I'm brand new to operating a blog however I do write in my journal everyday. I'd like to
start a blog so I will be able to share my personal experience and feelings
online. Please let me know if you have any kind of
suggestions or tips for new aspiring bloggers.

Here is my blog post ... How You Can Detect Gynecomastiain The Beginning

匿名 提到...

Hi! I know this is somewhat off topic but I was wondering which blog platform are you using for this website?

I'm getting fed up of Wordpress because I've had problems with
hackers and I'm looking at options for another platform. I would be fantastic if you could point me in the direction of a good platform.

Feel free to visit my website - chestfatburner.com

匿名 提到...

excellent post, very informative. I'm wondering why the other specialists of this sector don't notice this.
You should continue your writing. I am sure, you have a huge readers' base already!

my blog; http://chestfatburner.com/anadrol-increases-the-risk-of-gynecomastia-in-men/

匿名 提到...

Very rapidly this web page will be famous among all blogging and site-building viewers,
due to it's good articles or reviews

Also visit my webpage Exactly just precisely the way in the event you cope with gynecomastia?

匿名 提到...

I visit daily a few blogs and websites to read articles or reviews, however this webpage provides
feature based articles.

Here is my web-site :: Can easily healing drugs become attributed regarding gynecomastiadevelopment

匿名 提到...

Valuable info. Lucky me I discovered your website by accident, and I am shocked why
this coincidence did not came about in advance!

I bookmarked it.

Here is my web blog - chestfatburner.com

匿名 提到...

Touche. Outstanding arguments. Keep up the good work.

Feel free to surf to my web site ... Will working out frequently eliminate gynecomastia?

匿名 提到...

Great article! That is the type of information that are supposed to be shared around the web.
Disgrace on the search engines for not positioning this submit upper!
Come on over and consult with my site . Thanks =)

Also visit my blog post: Utilizing presenting in order to be able for you to help control gynecomastia

匿名 提到...

It's hard to come by experienced people on this subject, however, you sound like you know what you're talking about!

Here is my page :: Improved Estrogen Degree Leads to Man Boobs

匿名 提到...

google law firm