Control-D/WebAccess Server Web Configuration
You must configure a Web Server and establish a virtual directory to use the selected Internet access method, such as CGI, ISAPI, or Servlet before you use Control-D/WebAccess Server Web Application. A web server manages HTTP requests, enforces security, and optimizes performance. A virtual directory organizes resources, simplifies URL mapping, and enables granular access control, which enables you to use the Control-D/WebAccess Server Web Application.
You must do the following:
-
Configure the Web Server: Install and configure a web server, such as Microsoft Internet Information Services or Apache HTTP Server, on any computer where Control-D/WebAccess Server Desktop is installed before you can run the Control-D/WebAccess Server Web Application.
The following procedures describe how to configure the Web Server:
-
Create a Virtual Directory: Establish a virtual directory, after you install and configure the web server. This virtual directory serves as the gateway for HTTP access to the installation_folder\bin folder of the chosen Internet access method, which enables you to form the URL required to access the Control-D/WebAccess Server Web Application.
The following procedures describe how to create a Virtual Directory:
Configuring a Web Server with Microsoft IIS
This procedure describes how to update the Web Service Extensions in the IAM installation bin directory when you use IIS 8 or later, which enables you to host the Control-D/WebAccess Server Web Application on Microsoft ISS:
Begin
-
Start the Microsoft ISS Service.
-
From the command line, define a virtual directory by running the following command:
%windir%\system32\inetsrv\appcmd.exe add vdir /app.name:"Default Web Site"//path:/<Virtual Directory Name> /physicalPath:"<Installation Path>\bin"
%windir%\system32\inetsrv\appcmd.exe add vdir /app.name:"Default Web Site"//path:/wa /physicalPath:"E:\Program Files\BMC Software\CONTROL-D\wa\bin"
-
Adjust the Internet Access Method component settings by running the following series of commands:
-
%windir%\system32\inetsrv\appcmd set config-section:system.applicationHost/applicationPools-[name='DefaultAppPool'].enable32BitAppOnWin64:false
-
%windir%\system32\inetsrv\appcmd clear config "Default Web Site/<Virtual DirectoryName>"/section:handlers
-
%windir%\system32\inetsrv\appcmd set config "Default Web Site/<Virtual DirectoryName>"/section:handlers /[name='CGI-exe',path='*.exe',verb='*',modules='CgiModule',resourceType='File',requireAccess='Execute',allowPathInfo='true']
-
%windir%\system32\inetsrv\appcmd set config "Default Web Site/<Virtual DirectoryName>" /section:handlers /accessPolicy:Read,Script,Execute
-
%windir%\system32\inetsrv\appcmd clear config "Default Web Site/<Virtual DirectoryName>" /section:isapiCgiRestriction
-
%windir%\system32\inetsrv\appcmd set config /section:isapiCgiRestriction/+"[path='<Installation Path>\bin\bmc-ctd-wa-cgi.exe',description='CONTROL-D/WebAccess Server program',allowed='True']"
-
%windir%\system32\inetsrv\appcmd set config /section:isapiCgiRestriction/+"[path='<Installation Path>\bin\bmc-ctd-wa-isapi.dll',description='CONTROL-D/WebAccess Server program',allowed='True']"
-
%windir%\system32\inetsrv\appcmd set config /section:isapiCgiRestriction/+"[path='<Installation Path>\bin\bmc-ctd-wa-cgis.exe',description='CONTROL-D/WebAccess Server program',allowed='True']"
-
%windir%\system32\inetsrv\appcmd set config /section:isapiCgiRestriction/+"[path='<Installation Path>\bin\bmc-ctd-wa-isapis.dll',description='CONTROL-D/WebAccess Server program',allowed='True']"
-
%windir%\system32\inetsrv\appcmd set config /section:isapiCgiRestriction/+"[path='<Installation Path>\bin\bmc-ctd-studio-lv-cgi.exe',description='CONTROL-D/WebAccess Server program',allowed='True']"
-
%windir%\system32\inetsrv\appcmd set config /section:isapiCgiRestriction/+"[path='<Installation Path>\bin\bmc-ctd-http-file-cgi.exe',description='CONTROL-D/WebAccess Server program',allowed='True']"
-
-
Define the cgi timeout by running the following command:
%windir%\system32\inetsrv\appcmd set config /section:cgi /timeout:<hh:mm:ss>
%windir%\system32\inetsrv\appcmd set config /section:cgi /timeout:00:20:00
-
(Optional) Enable HTTP compression, as discussed in Enabling HTTP Compression with ISS
The virtual directory is configured.
Enabling HTTP Compression with ISS
This procedure describes how to enable HTTP compression on IIS, which enables you to improve performance when you use Control-D/WebAccess Server over a widely distributed network.
You can only enable HTTP compression when you use IIS 6.0 or higher.
Begin
-
From the Control Panel, select Administrative Tools > Internet Services Manager.
The Internet Information Services window appears.
-
From the Web Sites folder, select Properties and select the Service tab.
-
Select the Compress Application Files checkbox.
-
Select the Compress Static Files checkbox.
-
In the Temporary Directory field, type the filename.
-
In the Maximum temporary directory size field, type the maximum size of the directory.
-
-
From the Web Service Extensions folder, in the right pane, click Add a New Web Service Extension.
The New Web Service Extension window appears.
-
Select the HTTP Compression checkbox.
-
Click Add.
-
Select %windir%\system32\inetsrv\gzip.dll and click OK.
-
Select the Set Extension Status to Allowed checkbox and click OK.
HTTP Compression is enabled on the Internet Services Manager.
-
Creating a Virtual Directory with Microsoft IIS
This procedure describes how to create a new virtual directory with Microsoft IIS. A virtual directory is a path or alias within a website that refers users to another directory where the actual data is hosted.
Begin
-
From the Control Panel, select Administrative Tools > Internet Services Manager.
The Internet Information Services window appears.
-
In the Internet Information Services window, expand Server Name.
-
Right-click Default Web Side folder, and select New, and then select Virtual Directory.
The Virtual Directory Creation Wizard window appears.
-
Click Next.
-
Type an alias name for the Control-D/WebAccess Server site, such as waserver.
This is the virtual directory name for the URL to access the Control-D/WebAccess Server Web site.
-
Click Next.
The Virtual Directory Creation Wizard dialog box--Web Site Content Directory option appears.
-
Type the path of the Internet access method installation_folder\bin directory, or click Browse to locate the correct path.
-
Click Next.
-
The Virtual Directory Creation Wizard dialog box--Access Permissions option appears.
-
Define the access permissions for the virtual directory.
-
Click Next and then click Finish.
The Internet Information Services window appears.
-
Configure the virtual directory properties, as described in Configuring Virtual Directory Properties with Microsoft IIS Web Server
A new virtual directory is created.
Configuring Virtual Directory Properties with Microsoft IIS Web Server
This procedure describes how to configure the new virtual directory you created in Creating a Virtual Directory with Microsoft IIS.
Begin
-
From the Control Panel, select Administrative Tools > Internet Services Manager.
The Internet Information Services window appears.
-
Type the name of the new virtual directory, such as, waserver, in the Application Name field.
-
In the Application Settings Permissions area, select Scripts and Executables.
-
To set the MIME type, do the following:
-
From the HTTP Headers tab, select MIME Types.
-
From the MIME Types drop-down list, select New Type.
The MIME Types window appears.
-
In the Associated Extension field, type .xpi.
-
In the Content type (MIME) field, type application/x-xpinstall.
-
-
In the MIME Type window, click OK.
-
In the MIME Types window, click OK.
-
In the Properties window, click OK.
The virtual directory properties are configured.
Configuring a Web Server with Apache HTTP
This procedure describes how to create and configure a virtual directory in Apache HTTP server, which enables you to host the Control-D/WebAccess Server Web Application on UNIX.
Begin
-
Navigate to the following directory:
apache_http_server_installation /conf
-
Open the httpd.conf configuration file in a text editor.
-
Type the following script in the [Alias] section of the file:
Copyalias /<alias-name< "< wa-iam-bin-dir>"
<Directory "<WebAccess Server installation>/bin">
AddHandler cgi-script .exe
Options All
AllowOverride None
Order allow,deny
Allow from all
</Directory> -
Replace wa-iam-bin-dir with the path of the IAM installation_folder/bin directory.
http://www.bmc.com/alias-name/bmc-ctd-wa-cgi.exe?RequestType=LoginWindow)
-
End the directory name with a slash before you insert the closing quotation mark.
The virtual directory name must match the name, as described in Loading a WAR File to IBM WebSphere Servlet.
-
- Do the following:
Set the BMC_CTD_SystemRoot environment variable to the path of the Control-D/WebAccess Server installation.
Set the LIBPATH environment variable to the path of the lib directory and replace library_path with one of the following, depending on the environment:
AIX: LIBPATH.
HP: SHLIB_PATH.
Solaris: LD_LIBRARY_PATH.
(Optional) Set environment variables for the host and port of the Control-D/WebAccess Server host, which uses the Internet access method. The default choice of host is any IPv4 or IPv6 address, and the default choice of port is 7777.
Enclose the IPv6 address in square brackets, such as, [2001:db8::1:2] when you define the host as an IPv6 address.
-
Type the following command at the end of the httpd.conf file to instruct the Apache Server to pass requests to WebSphere:
AddType application/x-xpinstall.xpi
-
Ensure that index.htm appears in the DirectoryIndex line.
DirectoryIndex index.htm
-
Click Save.
-
Restart the Web server.
The virtual directory is created.
Creating a Virtual Directory with Apache HTTP
This procedure describes how to create a virtual directory in Apache HTTP, which enables you to host the Control-D/WebAccess Server Web Application on UNIX.
Begin
-
Navigate to the following directory:
apache_http_server_installation /conf
-
Open the httpd.conf configuration file in a text editor and type the following script in the [Alias] section:
CopyAlias </virtual_directory_name>
"<WebAccess Server installation>/bin"
<Directory "<WebAccess Server installation>/bin">
AddHandler cgi-script .exe
Options All
AllowOverride None
Order allow,deny
Allow from all
</Directory>The virtual directory name must match the name, as described in Loading a WAR File to IBM WebSphere Servlet.
-
Type the following script at the end of the httpd.conf file to instruct the Apache Server to pass requests to WebSphere:
CopyLoadModule app_server_http_module
"<WebSphere_installation_folder>/bin/mod_app_server_http.dll"
WebSpherePluginConfig
"<WebSphere_installation_folder>/config/cells/plugin-cfg.xml" -
Click Save.
The virtual directory is created.
Configuring a Web Server with IBM HTTP
This procedure describes how to configure an IBM HTTP Server, which enables you to access the WebAccess Server on a web browser.
Begin
-
Navigate to the following location:
ibm_http_server_installation/conf directory
-
Open the httpd.conf configuration file in a text editor and type the following commands in the [Alias] section:
Exec / wa /bmc-ctd-(.*) / was-iam-bin-dir /bmc-ctd-$1
Pass / wa /* / was-iam-bin-dir /*
-
Replace / wa / with the name of a virtual directory.
-
Replace / was-iam-bin-dir / with the path of the Internet access method installation_folder/bin directory.
The Exec line must be listed before the Pass line.
-
-
Type the following command at the end of the httpd.conf file to add MIME type for .xpi files:
AddType application/x-xpinstall .xpi
-
Save the httpd.conf file and restart the Web server.
The virtual directory is configured on an IBM HTTP Server.
Creating a Virtual Directory with IBM HTTP
This procedure describes how to create a virtual directory in IBM HTTP server, which enables you to host the Control-D/WebAccess Server Web Application on UNIX.
Begin
-
Navigate to the following directory:
apache_http_server_installation /conf
-
Open the httpd.conf configuration file in a text editor.
-
Type the following script in the [Alias] section of the file:
CopyAlias /virtual_directory_name "<WebAccess Server installation>/bin"
<Directory "<WebAccess Server installation>/bin">
AddHandler cgi-script .exe
Options All
AllowOverride None
Order allow,deny
Allow from all
</Directory> -
Replace virtual_directory_name with the desired virtual directory name, and <WebAccess Server installation> with the WebAccess Server installation file path.
-
(Optional) Set environment variables for the host and port of the Control-D/WebAccess Server host that is used by the Internet access method. The default choice of host is any IPv4 or IPv6 address, and the default choice of port is 7777.
You must enclose the IPv6 address in square brackets, such as, [2001:db8::1:2] when you define the host as an IPv6 address.
The virtual directory name must match the name, as described in Loading a WAR File to IBM WebSphere Servlet.
-
-
In the next line, type the following script to the file.
-
Type the following command at the end of the httpd.conf file to instruct the IBM HTTP Server to pass requests to WebSphere:
LoadModule app_server_http_module "<WebSphere_installation_folder>/bin/mod_app_server_http.dll"
WebSpherePluginConfig "<WebSphere_installation_folder>/config/cells/plugin-cfg.xml"
-
Click Save.
-
Restart the IBM HTTP Server.
The virtual directory is created.
Configuring a Web Server with IBM WebSphere Servlet
This procedure describes how to configure IBM WebSphere Servlet for UNIX, which enables you to host the Control-D/WebAccess Server Web Application on UNIX.
Begin
-
Navigate to the following location:
ibm_http_server_installation / conf directory
-
Open the httpd.conf file with a text editor.
-
Find the line that contains the following text:
/servlet/*
-
Type the following before this line.
Map / <wa> /waservlet* /servlet/waservlet*
Pass / wa /* / <wa-iam-bin-dir> /
-
Add the following command after the /servlete/* line:
AddType .xpi application/x-xpinstall
- Click Save and restart the Web Server.
-
Navigate to the following location:
installation_folder/bin/htmls
-
Open the index.htm file with a text editor.
-
Replace the following text:
bmc-ctd-wa-cgi.exe with waservlet.
-
Click Save.
IBM WebSphere is configured.
Creating a WAR file with IBM WebSphere Servlet
This procedure describes how to create a Web Application Resource (WAR) File for WebSphere, which enables you to save all web resources within a single folder.
Begin
-
Create a temporary directory, with a subdirectory named WEB-INF.
-
From the WEB-INF directory, create a subdirectory named Classes.
-
From the < IAM installation directory >/bin folder, copy the waservlet.class file.
-
Save the waservlet.class file in the Classes subdirectory.
-
From the WEB-INF subdirectory, create a new text file named web.xml.
-
From the web.xml file, type one of the following scripts when you determine the BMC_CTD_WA_USING_SSL parameter:
-
True
Copy<web-app id="BMC_CTD_WebAccessServer">
<welcome-file>index-servlet.html</welcome-file>
<display-name>BMC CONTROL-D/WebAccess Server</display-name>
<description>BMC CONTROL-D/WebAccess Server configuration file</description>
<context-param id="ContextParam_BMC_CTD_WA_HOST">
<param-name>BMC_CTD_WA_HOST</param-name>
<param-value>localhost</param-value>
</context-param>
<context-param id="ContextParam_BMC_CTD_WA_PORT">
<param-name>BMC_CTD_WA_PORT</param-name>
<param-value>7777</param-value>
</context-param>
<context-param id="ContextParam_BMC_CTD_WA_SECURED_HOST">
<param-name>BMC_CTD_WA_SECURED_HOST</param-name>
<param-value>localhost</param-value>
</context-param>
<context-param id="ContextParam_BMC_CTD_WA_SECURED_PORT">
<param-name>BMC_CTD_WA_SECURED_PORT</param-name>
<param-value>7778</param-value>
</context-param>
<context-param id="ContextParam_BMC_CTD_WA_USING_SSL">
<param-name>BMC_CTD_WA_USING_SSL</param-name>
<param-value>True</param-value>
</context-param>
<context-param id="ContextParam_BMC_CTD_WA_SSL_PROTOCOL">
<param-name>BMC_CTD_WA_SSL_PROTOCOL</param-name>
<param-value>TLSv1.2</param-value>
</context-param>
<context-param id="ContextParam_BMC_CTD_WA_SSL_KEYFILE">
<param-name>BMC_CTD_WA_SSL_KEYFILE</param-name>
<param-value>c:\\Program Files\\BMC Software\\Control-D\\wa\\config\\ssl\\bmc-ctd-wa-server.jks</param-value>
</context-param>
<context-param id="ContextParam_BMC_CTD_WA_SSL_KEYFILE_PASSWORD">
<param-name>BMC_CTD_WA_SSL_KEYFILE_PASSWORD</param-name>
<param-value>lmobBZriONNNHUhRzC3W9g==</param-value>
</context-param>
<servlet id="Servlet_BMC_CTD_waservlet">
<servlet-name>waservlet</servlet-name>
<display-name>waservlet</display-name>
<description>BMC CONTROL-D/WebAccess Server servlet</description>
<servlet-class>waservlet</servlet-class>
</servlet>
<servlet-mapping id="ServletMapping_waservlet">
<servlet-name>waservlet</servlet-name>
<url-pattern>/waservlet/*</url-pattern>
</servlet-mapping>
</web-app> -
False
Copy<web-app id="BMC_CTD_WebAccessServer">
<welcome-file>index-servlet.html</welcome-file>
<display-name>BMC CONTROL-D/WebAccess Server</display-name>
<description>BMC CONTROL-D/WebAccess Server configuration file</description>
<context-param id="ContextParam_BMC_CTD_WA_HOST">
<param-name>BMC_CTD_WA_HOST</param-name>
<param-value>localhost</param-value>
</context-param>
<context-param id="ContextParam_BMC_CTD_WA_PORT">
<param-name>BMC_CTD_WA_PORT</param-name>
<param-value>7777</param-value>
</context-param>
<context-param id="ContextParam_BMC_CTD_WA_SECURED_HOST">
<param-name>BMC_CTD_WA_SECURED_HOST</param-name>
<param-value>localhost</param-value>
</context-param>
<context-param id="ContextParam_BMC_CTD_WA_SECURED_PORT">
<param-name>BMC_CTD_WA_SECURED_PORT</param-name>
<param-value>7778</param-value>
</context-param>
<context-param id="ContextParam_BMC_CTD_WA_USING_SSL">
<param-name>BMC_CTD_WA_USING_SSL</param-name>
<param-value>False</param-value>
</context-param>
<servlet id="Servlet_BMC_CTD_waservlet">
<servlet-name>waservlet</servlet-name>
<display-name>waservlet</display-name>
<description>BMC CONTROL-D/WebAccess Server servlet</description>
<servlet-class>waservlet</servlet-class>
</servlet>
<servlet-mapping id="ServletMapping_waservlet">
<servlet-name>waservlet</servlet-name>
<url-pattern>/waservlet/*</url-pattern>
</servlet-mapping>
</web-app>
-
-
Change the following line in the web.xml file to contain the name or IP address of the WebAccess Server computer instead of localhost when you install Control-D/WebAccess Server WebAccess Server on a separate computer:
<param-value>localhost</param-value>
<param-value>ctdwa</param-value>
-
Change the following line in the web.xml file when you configure Control-D/WebAccess Server is configured to listen to a port other than 7777:
<param-value>7777</param-value>
<param-value>5687</param-value>
-
Save the web.xml file.
-
Zip the temporary directory folder, including the WEB-INF subdirectory.
-
Change the suffix of the zip filename from .zip to .war.
The new filename is ctdwa.war when you change the suffix of the ctdwa.zip file.
A WAR File appears.
Loading a WAR File to IBM WebSphere Servlet
This procedure describes how to load the waservlet.class file you created in Creating a WAR file with IBM WebSphere Servlet, to the WebSphere Administrative Console.
Begin
-
Log in to the WebSphere Administrative Console.
-
From the left pan, select Applications,
-
Select Enterprise Applications.
The WebSphere Application Server Administrative Console window appears.
-
Select an application and click Install.
The Preparing for the Application Installation screen appears.
-
In the Path field, type the WAR file server path name you added in Creating a WAR file with IBM WebSphere Servlet.
In the Context root field, type the virtual directory name and click Next.
The Bindings and Mappings step appears.
-
Click Next to bypass this option.
Step 1 appears.
-
Select the following checkboxes and click Next.
-
Distribute Application
-
Create MBeans for Resources
Step 2 appears.
-
-
Select the Virtual Host checkbox to map and click Next.
Step 3 appears.
-
Select the Application Server where to install the applications and click Next.
Step 4 appears.
-
Review the summary of the installation options and click Finish.
-
Select the Save to Master Configuration checkbox and click Save.
The WebSphere Administrative Console appears.
-
From the WebSphere Administrative Console, select Applications.
-
Select Enterprise Applications.
-
Select an application and click Start.
The application starts and is indicated by a green arrow in the Status column.
Defining an Apache HTTP Server WebSphere Plug-in.
This following procedure describes how to define the WebSphere plug-in in Apache HTTP server.
Begin
-
Navigate to the following location:
<WebSphere installation_folder>\cells folder
-
Open the plugin-cfg.xml file with a text editor.
-
From the plugin-cfg.xml file, in the UriGroup Name section type the following:
<Url Name="/<virtual_directory>/waservlet/*"/>
-
Click Save.
-
Restart the Apache HTTP Server.
-
Open the following file in a text editor:
<installation_folder>\bin\index.html
-
Set the default Internet Access Method to Servlet by editing the URL value so that it is equal to waservlet:
<HTML><META HTTP-EQUIV= "Refresh" content="0;URL=waservlet? RequestType=LoginWindow"><HEAD></HEAD><BODY></BODY></HTML>
-
Click Save.
The WebSphere plug-is defined.