Modify AMAgent.properties to point Protected Resource 1 and Protected Resource 2 to Load Balancer 5.
As a root user, log in to the ProtectedResource–1 host machine.
Change to the config directory.
# cd /export/WebPA1/web_agents/sjsws_agent/Agent_001/config |
Backup AMAgent.properties before you modify it.
Make the following changes to AMAgent.properties.
Add the following entry:
com.sun.am.policy.agents.config.fqdn.map = valid|LoadBalancer-5.example.com |
Append the following to the end of the value string for the com.sun.am.policy.agents.config.notenforced_list property:
http://ProtectedResource-1.example.com:1080/monitor.html http://LoadBalancer-5.example.com:90/monitor.html
Save the file and close it.
Create a monitor.html file to be used by the load balancer.
# cd /opt/SUNWwbsvr/https-ProtectedResource-1.example.com/docs # cat > monitor.html <HTML> </HTML> Hit Control D to terminate the command ^D |
Restart Web Server 1 on the Protected Resource 1 host machine.
# cd /opt/SUNWwbsvr/https-ProtectedResource-1.example.com/bin # ./stopserv; ./startserv |
Log out of the ProtectedResource–1 host machine.
As a root user, log in to the ProtectedResource–2 host machine.
Change to the config directory.
# cd /export/WebPA2/web_agents/sjsws_agent/Agent_001/config |
Make the following changes to the AMAgent.properties file.
Backup AMAgent.properties before you modify it.
Add the following entry:
com.sun.am.policy.agents.config.fqdn.map = valid|LoadBalancer-5.example.com |
Append the following to the end of the value string for the com.sun.am.policy.agents.config.notenforced_list property:
http://ProtectedResource-2.example.com:1080/monitor.html http://LoadBalancer-5.example.com:90/monitor.html
Save the file and close it.
Create a monitor.html file to be used by the load balancer.
# cd /opt/SUNWwbsvr/https-ProtectedResource-2.example.com/docs # cat > monitor.html <HTML> </HTML> Hit Control D to terminate the command ^D |
Restart Web Server 2 on the Protected Resource 2 host machine.
# cd /opt/SUNWwbsvr/https-ProtectedResource-2.example.com/bin # ./stopserv; ./startserv |
Log out of the ProtectedResource–2 host machine.