在AIX Version 5.3中使用Java和PHP技术进行开发(1)
http://tech.ddvip.com 2008年11月13日 社区交流
本文是系列文章的第 1 部分,研究了 AIX 中 Java 编程语言和 PHP 集成方法的基础,提供了使用这种结构的示例应用程序的简要概述,然后介绍了在安装 Java 编程语言和 Apache Tomcat 以开发应用程序之前所需掌握的一些核心内容。
将端口属性值更改为您希望使用的端口。如果需要,您可能还希望调整 redirectPort 属性,其中包含了安全套接字层 (SSL) 连接所使用的端口。如果您更改了这个值,那么请确保同时更改 SSL 连接的端口规范,如清单 2 所示。
清单 2. 更改端口规范<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the
connector should be using the OpenSSL style configuration
described in the APR documentation -->
<!--
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
如果您希望服务器特定主机上的服务能够支持多个网络接口或地址,那么您还必须修改主机名规范。需要在两个位置对其进行设置,一处是在 Engine 标记中,而另一处是在特定的 Host 标记中,如清单 3 所示。
清单 3. 修改主机名规范<Engine name="Catalina" defaultHost="localhost">
...
<!-- Define the default virtual host
Note: XML Schema validation will not work with Xerces 2.2.
-->
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
来源:ibm 作者:Doug Monroe 责编:豆豆技术应用