Oracle B12255-01 Benutzerhandbuch

Seite von 224
Configuring Reverse Proxies and Load Balancers
5-6
Oracle HTTP Server Administrator’s Guide
Configuring Reverse Proxies and Load Balancers
By default, Oracle Database installs using the local hostname as set up by
 directive in Oracle HTTP Server. Most Web sites tend to have a
specific hostname or domain name for their Web 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 5–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 Database Hos
t: server.oracle.com 123.456.7.9
ServerName and Port of Oracle Database Host
: server.oracle.com:7777
Make the following changes in the
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>