您的位置:首页 > 运维架构 > Apache

HOW TO INTEGRATE TOMACAT AND APACHE

2006-06-27 17:52 239 查看
Tomcat is an important project in jakarta, which is choose the best innovative java production through public appraisal in the JavaWorld magzine in 2001. At the time it is the serlet and jsp container recommended by the SUN company.

Apache roots from the NCSAhttpd server. After some time modification, it has been one of the most popular Web Servers. The name of Apache come from the pronunciation of "apatchy server", which means an server  is full of bugs. Because it is free software, there are lots people develop the new function, new speciality, and perfect it.

The mainly characteristics of Apache:

(1)     run on all computer platforms

(2)     sustain the newest HTTP 1.1 protocol

(3)     easy and efficient configuration base on file

(4)     sustain the general gateway interface CGI

(5)     sustain the virtual machine

(6)     sustain the authentication of HTTP

(7)     integrate the Perl script program language

(8)     integrative agent server

(9)     SSI

(10) SSL

(11) Sustain Java Servlets

 

We know that the Tomcat is good at processing the dynamic web pages; oppositely the Apache is well in static web pages.

 

Now I want to do is integrate their strength

 

The follows is my step:

1. Install the JDK ( I install the JDK with version of 1.5.0.4

2. Set the environment variable (JAVA_HOME, CLASS_HOME, PATH, you can write a .java file to test whether you have installed successfully)

3. Install the tomcat 5.0 (test the port http://localhost:8080, you can test a *.jsp file which is in the ROOT document)

4. Install the Apache (my apache version is 2.0, test the http://localhost then you can find whether is ok)

5. Integration (a. put the mod.so file in the module document, b. edit the workers.properties in the tomcat/conf c. edit the apahche/conf/httpd.conf

6. test whether ok~!

      

The related operation u can find in some webs, which introduce particular. You can easily get what you need.

 

Related resource:
http://www.cjsdn.net/post/view?bid=11&id=172565&sty=1&tpg=1&age=0
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息