Apache 2.0.48 + Tomcat 5.0.16 configuration instructions

Source: Internet
Author: User
Apache one, prepare (try to find the following version of the package, because the other package I did not test):
Because the Internet is easy to find, so do not mention the same download address.
Apache_2.0.48-win32-x86-no_ssl.exe
Jdk1.4_03.exe
Jakarta-tomcat-5.0.16.exe
Mod_jk1.2.4.dll (this dongdong is not easy to find, so I bring you one.) Download

Second, installation:
1, installation (for the convenience of the description, the following is my own installation directory)
APACHE (C:\Program Files\apach2),
JDK (d:\myweb\jdk1.4),
TOMCAT (C:\Program Files\tomcat).
All the way to install, there is no other setting.

2. Environment variable:
Class_path:.; D:\myweb\jdk\lib\dt.jar;d:\myweb\jdk\lib\tools.jar (Remember the previous ".")
Java_home:d:\myweb\jdk
Path:d:\myweb\jdk\in;
Tomcat_home:c:\program Files\tomcat

3, set Apache.
Copy the MOD_JK to the $apache_home/modules. (Apache_home refers to the Apache installation directory, hereinafter.) )

Open $apache_home/conf/httpd.conf
Add the following:

LoadModule Jk_module Modules/mod_jk.dll
Jkworkersfile "C:/Program files/tomcat/conf/workers.properties"
jkmount/servlet/* ajp13
Jkmount/*.jsp ajp13
Include "C:/Program files/tomcat/conf/mod_jk.conf"

4, set Tomcat.
Copy the mod_jk.conf to the $tomcat_home/conf.
Copy the workers.properties to the $tomcat_home/conf.
Note: The extensions for the two files above. Apache Port 80,tomcat Port 8080.

5, set up the virtual directory (for easy to use).
Create a folder D:\jsptest
Open $apache_home/conf/httpd.conf
Add the following:

Alias/jsptest "D:\jsptest"
<directory "D:\jsptest" >
Options Indexes followsymlinks MultiViews
AllowOverride None
Order Allow,deny
Allow from all
</Directory>

Open $tomcat_home/conf/server.xml
Add the following before
<context path= "/jsptest" docbase= "d:/jsptest" debug= "0"/>

And then restart Apache and tomcat!.

6, Testing:

test.jsp Copy to D:/jsptest

http://jerry/jsptest/test.jsp
(Jerry is the name of my computer, you use your computer name instead.) localhost as if not, who if modified with localhost can write to tell me ah ^_^ join2002at163.com:at=@)

Display as:

Now the time is: 2004-2-26 11:03:41

Congratulations, APACHE+TOMCAT configuration success!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.