<Test> win2k configures tomcat3.1 on apache1.3

Source: Internet
Author: User
Tags tomcat
Why should I configure tomcat as an in-process component of Apache?
1. Tomcat does not process static pages as fast as apache
2. Tomcat is not as easy to configure as apache
3. Tomcat is not stable and robust with apache
4. apache supports CGI scripts and APIs, perl, php, and so on.
Next let me try to configure
1. Review the installation of apache and tomcat first
My machine is a Chinese version of windows 2000 server and jdk1.3 has been installed (in d: jdk1.3)
Apache I installed in D: Program FilesApache GroupApache
I set the ServerName of the apache server to spf, and my machine name to spf.
Set port to iis5.
Tomcat I installed in D: omcat
2. Before proceeding with the configuration, let's take a look at the tomcat Documentation.
D: omcatdocuguideomcat_ug.html
3. Then, start the configuration in the follow document and download ApacheModuleJServ. dll.
Http://jakarta.apache.org/builds/tomcat/release/v3.1/bin/win32/i386/ApacheModuleJServ.dll
Put it in the D: Program FilesApache GroupApachemodules directory.
4. Edit D: Program FilesApache GroupApacheconfhttpd. conf.
Add this sentence at the end
Include d:/tomcat/conf/tomcat-apache.conf
5. Restart apache
Command line input:
Net stop "apache_svr"
Net start "apache_svr"
(I have configured apache as a win2k service .)
6. Enter http: // localhost: 81/examples/in the browser/
A 404 error is returned...
Very Puzzled. Check the document again.
D: omcatdocuguideomcat_ug.html
I found that apache has not enabled automatic tomcat startup yet :(((
Automatically starting Tomcat is not implemented yet
Mad at me...
Run d: omcatinstartup. bat to start tomcat
Then the browser can see the Directory List of http: // localhost: 81/examples.
Summary:
Apache cannot start tomcat automatically. Maybe the next version is enough. However, for the purpose of studying and learning JSP, this is not very important at present.
To create a new virtual directory, you can modify d: omcatconfserver. xml, add relevant content, restart tomcat, restart apache, and I found that the physical path of the virtual directory must be under the d: omcatwebapps directory, which is really strange.
Appendix:
When I was looking for linux materials last time, I got an apache Chinese document and uploaded it to the chinaasp.com/dowloadbar. The detailed address is: http://www.chinaasp.com/download/readitem.asp? Id = 342 for your reference

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.