Oracle® HTTP Server Administering a Standalone Deployment Based on Apache 2.0 10g (10.1.3.1.0) Part Number B28949-01 |
|
|
View PDF |
This chapter provides information about specifying IP addresses and ports, and managing server interaction, and network connection persistence.
You must include an introductory element, such as a Para, before inserting the first Sect1 element. This requirement prevents arriving at an empty XHTML page for a chapter or appendix if you have selected the option of breaking at Sect1 when generating XHTML output.
Topics discussed are:
Documentation from the Apache Software Foundation is referenced when applicable.
Note: Readers using this guide in PDF or hard copy formats will be unable to access third-party documentation, which Oracle provides in HTML format only. To access the third-party documentation referenced in this guide, use the HTML version of this guide and click the hyperlinks. |
The port that Oracle HTTP Server listens on when it is started depends on your installation type.
Table 4-1 contains information about Oracle HTTP Server ports.
Table 4-1 Oracle HTTP Server Ports
Platform | Middle Tier Installation | Infrastructure Installation |
---|---|---|
Solaris |
Non-SSL: 7777 (7777-7877 range) SSL: 4443 (4443-4543 range) |
Non-SSL: 7777 (7777-7877 range) SSL: 4443 (4443-4543 range) |
Windows |
Non-SSL: 80 (7777-7877 range) SSL: 443 (4443-4543 range) |
Non-SSL: 7777 (7777-7877 range) SSL: 4443 (4443-4543 range) |
If ports 7777 or 80, for example, are occupied, Oracle HTTP Server listens on the next available port numbers between a range of 7777-7877. Accordingly, it would listen on port 7778, and so on.
Note: SSL is disabled by default. For information on enabling SSL, refer to Chapter 9, "Enabling SSL for Oracle HTTP Server". |
A file named setupinfo.txt
is automatically generated in ORACLE_HOME
/install
on UNIX or ORACLE_HOME
\install
on Windows.
It contains port information for Oracle HTTP Server. This file is generated at install time, and is not updated thereafter. If you restart Oracle HTTP Server, the information in this file becomes inaccurate.
You can change the Oracle HTTP Server listener port (SSL and non-SSL) after installation. If you make a port change, then you have to also update other components to use the new port number.
You can specify that the server listens on more than one port, selected addresses, or a combination. The Listen directive, located in the "Global Environment" of the httpd.conf file, specifies listener ports and addresses. Multiple Listen
directives can be used to listen on multiple ports.
For example:
Listen 7778
Listen 12.34.56.78:80
The following directives are used to specify how the server interacts with the network. They are located in the "Global Environment" of the httpd.conf
file.
See Also: "httpd.conf File Structure" on page B-2 |
Specifies the maximum length of the queue of pending connections. This is useful if the server is experiencing a TCP
SYN
overload, which causes numerous new connections that open up, but do not complete the task.
Increases the TCP
buffer size to the number of bytes specified, thereby improving performance.
The following directives determine how the server handles persistent connections. They are located in the "Global Environment" of the httpd.conf file.
Enables HTTP 1.1 keep-alive support, allowing reuse of the same TCP connection for multiple HTTP requests from a single client, when set to "On".
Sets the number of seconds the server waits for a subsequent request before closing a KeepAlive connection. Once a request has been received, the timeout value specified by the TimeOut directive applies. The default is 15 seconds.
Limits the number of requests allowed per connection when KeepAlive is on. If it is set to "0", unlimited requests will be allowed. The default is 100.
By default, Oracle Application Server installs using the local hostname as set up by ServerName directive in Oracle HTTP Server. Most Web sites tend to have a specific hostname or domain name for their Web or application server. However, this is not possible out of the box because with the ServerName
directive, Oracle HTTP Server is instantiated with the local host.
Example 4-1 Using Reverse Proxies and Load Balancers with Oracle HTTP Server
Domain Name: www.oracle.com:80 123.456.7.8
(hosted on a reverse proxy, load balancer, or firewall)
Host Name of Oracle Application Server Host: server.oracle.com 123.456.7.9
ServerName and Port of Oracle Application Server Host: server.oracle.com:7777
Make the following changes in the httpd.conf
file:
Port 80 Listen 7777 Listen 80 # Virtual Hosts # This section is mandatory for URLs that are generated by # the PL/SQL packages of the Oracle Portal and various other components # These entries dictate that the server should listen on port # 7777, but will assert that it is using port 80, so that # self-referential URLs generated specify www.oracle.com:80 # This will create URLs that are valid for the browser since # the browser does not directly see the host server.oracle.com. NameVirtualHost 123.456.7.9:7777 <VirtualHost server.oracle.com:7777> ServerName www.oracle.com Port 80 </VirtualHost> # Since the previous virtual host entry will cause all links # generated by the Oracle Portal to use port 80, the server.company.com # server needs to listen on 80 as well since the Parallel Page # Engine will make connection requests to Port 80 to request the # portlets. NameVirtualHost 123.456.7.9:80 <VirtualHost server.oracle.com:80> ServerName www.oracle.com Port 80 <VirtualHost>