Change to the directory:
Run the following command:
cscript.exe ApacheAdmin.vbs -config defaultConfig
is a VB script that uses the output of the ApacheCreateConfig.vbs script. The output was saved to a configuration file, which for this example is represented by defaultConfig.
is the option that allows the output to be used to configure the web site.
represents the agent configuration file created previously as described in Windows Systems: To Create Configuration Files, Agent for Apache HTTP Server.
The script displays messages to indicate the progress of the configuration as shown in the following sample.
Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved. Copyright c 2004 Sun Microsystems, Inc. All rights reserved Use is subject to license terms Enter the Agent Resource File Name [ApacheResource.en]: Creating the AMAgent.properties File Modifying httpd.conf Completed Configuring the Agent for Apache 2.0.x. Re-start your server instance
Restart the web site.
Try accessing the web site (http://fqdn:port/index.html).
This link should take you to the Access Manager login page. After a successful authentication, if the policy is properly defined, you should be able to view the resource.
If you want to view the agent log file amAgent, do so at the following location:
where port is the port number of Apache HTTP Server.
If you want to configure the agent for multiple web sites, you must follow the preceding steps for each of the web sites.
The last step of this task addresses verification of the agent installation. See the section that follows (All Systems: Verifying a Successful Installation on Policy Agent 2.2) for an expanded explanation on verifying the agent installation.
If you want to configure multiple instances of Apache HTTP Server, you must set up multiple Apache HTTP Server Virtual Hosts, as described in All Systems: Configuring Agent for Apache HTTP Server on Multiple Apache HTTP Server Virtual Hosts.