Pre-requisites:
- OTD is installed & is in running state.
- Origin Server like OHS is configured in origin server pool settings.
- WebGate 11g is configured with OTD - you are able to execute ECC Scenario (this step is just to verify that setup is done properly).
This chapter is divided into :
- Configure OHS Server (here we have used OHS server as origin server with OTD)
- Creating DCC Webgate Profile in OAM Server
- Accessing OTD Protected resource.
Quickly i will show you the OTD Admin Console & Config done on it:
Let's begin the configuration process:
1) In order to enable DCC configuration in OTD, we need the resources used by DCC like login.pl, logout.pl etc present at OHS Server.
- Now the question arises why at OHS not at OTD? Because in OTD we have to rely on origin server to provide the resources.
- Now second question - from where we will get the resources. It is simple to answer. You can get these resources from OTD webgate installed directory.
- So simply copy these 2 folder in OHS server instance directory:
- Copy the oamsso-bin folder:
bash$> cp -rf /scratch/ckukreja/oracle/product/11.1.1/as_all/webgate/iplanet/oamsso-bin /Middleware_Home/Oracle_WT1/instances/<instance-name>/config/OHS/ohs1/oamsso-bin/
- Copy the oamsso folder under htdocs directory:
- Ok, we have the resources with us. Now it is required to config the OHS httpd.conf file.
This is what we have added:
1)
ScriptAlias /oamsso-bin/ "${ORACLE_INSTANCE}/config/${COMPONENT_TYPE}/${COMPONENT_NAME}/oamsso-bin/"
Alias /oamsso/ "${ORACLE_INSTANCE}/config/${COMPONENT_TYPE}/${COMPONENT_NAME}/htdocs/oamsso/"
2)
<Directory "${ORACLE_INSTANCE}/config/${COMPONENT_TYPE}/${COMPONENT_NAME}/oamsso-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
- Done.. We need to check whether we are able to access the resource. So how we will do this. Simple man - start the ohs server & access the resource.
bash$> ./opmnctl startall
Server started.....
- Access the resource hit the url- http://<host:port>/oamsso-bin/login.pl
You will be able to see the login.pl resource.
2) We are done with OHS settings, now proceed to create a DCC webgate profile at OAM Server. to do this follow: Configure DCC Webgate Profile
- Copy the created artifacts to the OTD Webgate instance directory.
bash$>cp /Middlware_Home/user_projects/domains/base_domain/output/dcc-9090/* /scratch/ckukreja/oracle/product/11.1.1.7.0/trafficdirector_Home_1/otd_instance/dcc-inst/config/
Note: My otd webgate instance is present in the otd installed directory itself. May be your directory structure might be different than mine. So no need to worry.
3) Now restart the OTD Instance:
bash$> cd /scratch/ckukreja/oracle/product/11.1.1.7.0/trafficdirector_Home_1/instances/bin/net-otd/
bash$> ./stopserv
Server Stopped....
bash$> ./startserv
Server Started....
You can restart/start/stop the otd instance from OTD Admin Console as well......
4) Access a protected resource like /index.html:
hostname - clk-host.us.com
OTD insatnce port - 9090
resource - index.html
http://clk-host.us.com:9090/index.html
Congrats you have done it.....!!!!!!
Enjoy :-)