Chapter 11: Tomcat and Apache HTTP Server ProxyPass /examples/jsp ajp://192.168.23.228:8009/examples/jsp ProxyPassReverse /examples/jsp ajp://192.168.23.228:8009/examples/jsp Order allow,deny Allow from all The host must be changed to the IP address of your own Tomcat worker server; in this case, it is the IP address of the local machine. On the Tomcat host, make sure you have an AJP connector at the default 8003 port. The default server .xml already contains this: Before testing this setup, restart Tomcat and then restart Apache. This ensures that the configuration changes made for Tomcat and Apache have been processed. To test the setup, point your browser to the following URL and browse to sample JSPs bundled with Tomcat: http://localhost/examples/jsp/ This assumes that you are running Apache server on the localhost. Note that you are browsing to http://localhost/ (the host/port on which Apache is listening) and not http://localhost:8080/ (Tomcat s host/port). If everything was configured properly, the Web page shown in Figure 11-2 should be displayed. Now try executing one of the JSPs. Click the Date example; this points the browser to http://localhost/jsp-examples/jsp/dates/date.jsp. This should display the Web page shown in Figure 11-3 . This test confirms that requests for JSPs are being redirected by Apache to Tomcat correctly. After testing the deployment from a local machine, you can test the installation from any other machine across the network. Configuring SSL for Apache Web Server SSL provides a secure communication channel between the browser and the Web server. When Apache is used with Tomcat, you can use SSL at either the Apache end or the Tomcat end or both. The preferred option is to enable SSL at the Apache end because of the better SSL support in Apache. Chapter 14 explores how SSL is set up for the HTTP Connector when Tomcat is used in the standalone mode of operation. This section shows you how to configure SSL for the Apache Web server Tomcat setup. The secured SSL connection can be enjoyed by any Tomcat applications running behind the Apache server, as well as any other non Tomcat-based application or modules hosted on the same server.
If you looking for unlimited one inclusive web hosting plan please check unlimited web hosting website.
This entry was posted
on Thursday, June 25th, 2009 at 2:06 am and is filed under tomcat.
You can follow any responses to this entry through the RSS 2.0 feed.
Responses are currently closed, but you can trackback from your own site.