4.1 Configuring Oracle Webgate
You must complete the following steps after installing Oracle HTTP Server for Oracle Access Manager:
- Go to the
Oracle_Home/webgate/ohs/tools/deployWebGate
directory by running the following command:cd/scratch/devops/Oracle/Middleware/Oracle_Home/webgate/ohs/tools/deployWebGate
- Run the following command to copy the required bits of agent from
the Oracle_Home directory to the OHS_Master_Config_Directory
location:
./deployWebGateInstance.sh -w OHS_Master_Config_Directory -oh Oracle_Home
For e.g../deployWebGateInstance.sh -w /scratch/devops/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/config /fmwconfig/components/OHS/ohs1-oh /scratch/devops/Oracle/Middleware/Oracle_Home
In this command:
Oracle_Home is the directory in which you have installed Oracle HTTP Server WebGate.
Example: /scratch/devops/Oracle/Middleware/Oracle_Home
OHS_Master_Config_Directory is the location of the directory where the main Oracle HTTP Server configuration files are kept.
Example: /scratch/devops/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/config/fmwconfig/components/OHS/ohs1 Run the following command to ensure that the LD_LIBRARY_PATH variable contains Oracle_Home_for_Oracle_HTTP_Server/lib:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:Oracle_Home/lib From your present working directory, move to directory:
cd Oracle_Home/webgate/ohs/tools/setup/InstallTools
cd/scratch/devops/Oracle/Middleware/Oracle_Home/webgate/ohs/tools/setup/InstallTools/
On the command line, run the following command to copy the apache_webgate.template file
from the Oracle_Home directory to the main Oracle HTTP Server configuration directory
(re-named to webgate.conf) and update the httpd.conf file to add one line to include
the name of webgate.conf:./EditHttpConf -w OHS_Master_Config_Directory
[-oh Oracle_Home] [-o output_file]
For e.g.
./EditHttpConf -w
/scratch/devops/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/config
/fmwconfig/components/OHS/ohs1 -oh /scratch/devops/Oracle/Middleware/Oracle_Home
In this command:
Oracle_Home is the directory in which you have installed Oracle HTTP Server WebGate for Oracle Access Manager.
Example:/scratch/devops/Oracle/Middleware/Oracle_Home
OHS_Master_Config_Directory is the location of the directory where the main Oracle HTTP Server configuration files are kept.
Example:/scratch/devops/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/config/fmwconfig/components/OHS/ohs1
output_file is the name of the WebGate configuration file generated by the tool.
A default webgate.conf file is generated if you do not specify this option.
Example:webgate.conf
Note:
The -oh Oracle_Home and -o output_file parameters are optional.