apache2+resin2.x Cluster Configuration Combat

Source: Internet
Author: User
Tags include modify

apache2+resin2.x cluster configuration

Test environment:

Required Software: apache2.x, resin2.x

Required Computers: 2 units

Machine A:ip 192.168.1.119

1. Install Good apache2.x

2. Modify Apache httpd.conf configuration file, Include conf/include/remote-resin.conf

3. Generate remote-resin.conf placed in the Apache Conf/include directory, without creating a

4. remote-resin.conf file Content

<IfModule !mod_caucho.c>
LoadModule caucho_module "<your mod_caucho.dll path>/mod_caucho.dll"
CauchoHost 211.111.8.86 6804
<Location /ws2>
SetHandler caucho-request
</Location>
<Location /caucho-status>
SetHandler caucho-status
</Location>
</IfModule>

Restart Apache in the Address bar input http://192.168.1.119/caucho-status should see something, uh huh

Machine B:ip 211.111.8.86

1. Install Good resin2.x

2. Modify Resin.con

<srun host='211.111.8.86' port='6804' srun-index="1"/>

Open Srun listening port, corresponding to Apache configuration

Add a row

<web-app id="/ws2/" app-dir="/wwwroot/webapps/ws2"/>

Make sure this thing is there, the path is not wrong, write in Http-server.

3. Start resin again visit Http://192.168.1.119/caucho-status will see another scene, visit Http://192.168.1.119/ws2 will see the deployment of a good app ws2 on machine B.

If you have more than one machine, you can repeat the installation of step B machine, srun There are other uses, look at the resin manual.

In the actual application feel very good, no longer need to update n access to the program and data, update a machine can, of course, to the firewall on the limit, or anyone can connect to resin up. Configured to be more comfortable than JK2 connected Tomcat.



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.