Win2000 Tomcat4.1.12 Apache2.0.43 configuration

xiaoxiao2021-03-06  52

I have recently been looking for methods of Tomcat4.1.12 apache2.0.43 for the needs of the project. But from the Internet to find a lot of Chinese websites, mostly lower versions or configurations are more complicated. Later, the website of the foreign experience summary was found, and the integrated method of thinking is also simple. Now, as follows, there is a throwing brick. I. Software installation and PATH and other settings: This step is nothing to say, press J2SDK1.4.1 (of course, other versions), the order of apache2.0.43, tomcat4.1.12 is. Then set ClassPath, Path, Java_Home, Catalina_home, respectively. II. Integration configuration: 1. Download MOD_JK2-2.0.43.dll (address: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.1/bin/win32/mod_jk2- 2.0.43.dll) and copy it into the modules subdirectory in the Apache installation directory. 2. Edit Apache2's profile httpd.conf, in the last plus the following lines. LoadModule jk2_module modules / mod_jk2-2.0.43.dll & lt; VirtualHost *> ServerAdmin webmaster@dummy-host.example.comDocumentRoot D: /jakarta-tomcat-4.1.12/webappsServerName dummy-host.example.comDirectoryIndex index.htm index.html Index.jsperrorlog logs / dummy-host.example.com-error_logcustomlog logs / dummy-host.example.com-access_log common & lt; / virtterialhost> where DocumentRoot is consistent with your Tomcat installation directory. DirectoryIndex is a file that automatically explains the JSP type. 3. Add workers2.properties file in the subdirectory conf APACHE2 installation directory, which reads as follows: # Define the communication channel [channel.socket: localhost: 8009] info = Ajp13 forwarding over sockettomcatId = localhost: 8009 # Map All webapp to The Web Server Uri Space [URI: / *] Info = map the whole webApp, the part of the URI does not necessarily press the above definition, you can set the child path to yourself. For example, when you only want to open the east in the Examples subdirectory, you can define it as follows: # map the tomcat example Webapp to the Web Server Uri Space [URI: / Examples / *] info = map the whole webapp4. Use Tomcat4.1.12 here. Default definitions of relevant port 8009 monitors, no need to make any corrections (unless you have changed ^ _ ^). III. Test: Start Apache and Tomcat, and then open the browser, enter http: // localhost /, and should display the Tomcat welcome interface if the URI configuration is configured. Source: Java Paradise Author: Java Paradise

转载请注明原文地址:https://www.9cbs.com/read-115137.html

New Post(0)