Lubuntu Virtual machine installation and Web project-to-Service on Windows systems (ii)

Source: Internet
Author: User

AJP Way to integrate Apache2 and Tomcat 7

1: Enable module MOD_PROXY_AJP in the apache2.conf configuration file, add it inside

LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so

The address of the. So depends on your modules (I address here:)

LoadModule proxy_module/usr/lib/apache2/modules//usr/lib/apache2/modules/mod_proxy_ajp.so

2: Then modify the configuration in apache2----> sites-available-->000-default.conf

<virtualhost *:80>/var//AJP://127.0.0.1:8009/PROXYPASSREVERSE/AJP: // 127.0.0.1:8009/ ServerName demo.vssweb.net</VirtualHost>

Demo.vssweb.net (domain name, self-defined)

3: Restart Apache2

Sudo/etc/init.d/apache2 restart

4: Restart Apache2 common problems encountered

Workaround: At the top of the 000-default.conf configuration file: Add

ServerName 127.0.0.1

It's OK on reboot!

Previous integration with MOD_JK has failed ~~~~~~

It's easier to use AJP.

Lubuntu Virtual machine installation and Web project-to-Service on Windows systems (ii)

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.