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)