Stop the web site for which you have configured the agent.
Change to the directory PolicyAgent-base\apache\bin
Run the following VB script to unconfigure the agent:
cscript.exe ApacheAdmin.vbs -unconfig 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 unconfigure 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 unconfigures the agent and displays the following message:
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]: Removing the agent configuration directory Restoring the original httpd.conf Completed Unconfiguring the Agent for Apache 2.0.x. Re-start your server instance |
The unconfiguration does the following:
Removes the agent configuration directory (specific to a web site)
Removes the entries from Windows registry.
Removes the wild card application mappings in Apache HTTP Server.