uCosminexus Application Server, Web Container Functionality Guide
Appendix C.1 Microsoft IIS 7.0 or Microsoft IIS 7.5 settings
(1) Installing a role service
When using Microsoft IIS 7.0 or Microsoft IIS 7.5, you must install a role service according to the usage. To install a role service:
- In the Start menu, from All Programs - Management Tools, start Server Manager.
- Under Server Manager, select Roles, and then under Web Server (IIS), click Add Role Service.
- In the Add Role Service dialog box, select the following role services:
- Static contents
- Existing documents
- Reference directory
- HTTP error
- ISAPI extension
- ISAPI filter
- IIS management console
- Click Install.
- Click Close.
Installation is complete.
(2) Adding the ISAPI and CGI limitations
To add the limitations of ISAPI and CGI:
- In the Start menu, from All Programs - Management Tools, start Internet Information Service (IIS) Manager.
- In the Features View server, from the Home page, double-click ISAPI and CGI Limitations.
- In the ISAPI and CGI Limitations page, under the Actions window, click Add.
- In the Add ISAPI or CGI Limitations dialog box, perform the following operations:
- In ISAPI or CGI Path, specify the DLL (Cosminexus-installation-directory\CC\web\redirector\isapi_redirect.dll) of the redirector.
- In Description, enter ISAPI.
- Check the Allow Execution of Extension Path checkbox.
- Click the OK button.
Close the Add ISAPI or CGI limitations dialog box to apply the settings.
(3) Adding an ISAPI filter
To add an ISAPI filter:
- In the Features View site, from the Home page, double-click ISAPI Filter.
- In the ISAPI Filter page, under the Actions window, click Add.
- In the Add ISAPI Filter dialog box, perform the following operations:
- In Filter Name, enter hitachi_ccfj.
- In Executable File, specify the DLL (Cosminexus-installation-directory\CC\web\redirector\isapi_redirect.dll) of the redirector.
- Click the OK button.
The Add ISAPI Filter dialog box closes, and the settings are applied.
(4) Setting the handler mapping
To set the handler mapping:
- In the Features View site, from the Home page, double-click Handler Mapping.
- In the Handler Mapping page, select ISAPI-dll, and then in the Actions window, click Edit.
- In the Edit Module Map dialog box, perform the following operations:
- In the Requested Path, enter *.dll.
- In Executable File, specify the DLL (Cosminexus-installation-directory\CC\web\redirector\isapi_redirect.dll) of the redirector.
If the handler mapping is already set, the Edit Script Map dialog box will run; however, the operation contents are the same.
- Click the OK button.
- In the message dialog box for confirming whether or not to enable the editing of the module map, click the Yes button to enable the ISAPI extension functionality.
- In the Handler Mapping page, select ISAPI-dll, and then in the Actions window, click Edit Access Permission of Functionality.
- In the Edit Access Permission of Functionality dialog box, check all access permissions including Read, Script, and Execute.
- Click the OK button.
The Edit Access Permission of Functionality dialog box closes, and the settings are applied.
(5) Adding a virtual directory
Add a virtual directory named hitachi_ccfj. To add the virtual directory:
- In the Connections window, expand the Site node, and click the site for adding the virtual directory.
- In the Actions window, click Display Virtual Directory.
The Virtual Directory page appears.
- In the Virtual Directory page, under the Actions window, click Add Virtual Directory.
- In the Add Virtual Directory dialog box, perform the following operations:
- In Alias, enter hitachi_ccfj.
- In Physical path, specify the directory in which the DLL (Cosminexus-installation-directory\CC\web\redirector\isapi_redirect.dll) of the redirector is saved.
- Click the OK button.
The Add Virtual Directory dialog box closes, and the settings are applied.
(6) Setting an application pool in the Server node
To set an application pool in the Server node:
- In the Connections window, expand the Server node, and then click Application Pool.
- In the Application Pool page, select the application pool to be used, and then in the Actions window, click Detailed Settings.
- In the Detailed Settings dialog box, perform the following operation:
- In Enable 32-bit Application, specify True (This specification is necessary only to run the Redirector of Windows x86 on Windows x64 OS).
- In Maximum Number of Worker Processes#, specify the maximum number of processes for processing requests in Microsoft IIS.
- #
- In this manual, the execution processes of the Web container are also referred to as Worker processes; however, the Worker processes set here are the processes used to process requests in Microsoft IIS.
- Click the OK button.
The Detailed Settings dialog box closes, and the settings are applied.
(7) Setting an application pool in the Site node
To set an application pool in the Site node:
- In the Connections window, expand the Site node, and then click the site in which to specify the application pool.
- In the Actions window, click Detailed Settings.
- In the Detailed Settings dialog box, enter Application Pool.
In Application Pool, specify the name of the application pool set in (6) Setting an application pool in the Server node.
- Click the OK button.
The Detailed Settings dialog box closes, and the settings are applied.
(8) Setting access permissions for the log output destination directory of the redirector
In the log output destination directory of the redirector, you must add the permission for writing to the execution account of the application pool of Microsoft IIS. Set the access permissions for the log output destination directory of the redirector from Explorer.
Specify the execution account of the application pool in the Detailed Settings dialog box of the application pool, under ID. If the default ID is specified, add the write permission for the IIS_IUSRS group.
The default IDs are as follows:
- Microsoft IIS 7.0: NetworkService
- Microsoft IIS 7.5: ApplicationPoolIdentity
Note that during new installation, by default, the log output destination directory of the redirector (Cosminexus-installation-directory\CC\web\redirector\logs) does not exist. Therefore, either create the logs directory and set the access permission, or set the access permission for the directory that is one level higher (redirector directory).
Also, when the log output destination directory of the redirector is changed and the specified path exists up to only halfway, either set the access permission for the existing lowermost directory, or create all directories corresponding to the specified path and set the access permission for the lowermost directory.
(9) Starting the Web site
To start the Web site of Microsoft IIS:
- In the Connections window, expand the Site node, and then click the site to be started.
- In the Actions window, click Start. If the site is already started, click Restart.
The Web site either starts or is restarted.
This subsection describes the notes on setting Microsoft IIS 7.0 or Microsoft IIS 7.5.
(a) Notes on replication of configuration settings in multiple environments
In Microsoft IIS 7.0 or Microsoft IIS 7.5, you can save the configuration settings in the web.config file. Also, based on the saved web.config file, you can replicate the configuration settings in multiple environments using xcopy.
However, for a configuration environment in which the redirector is used, you cannot set the redirector when replicating the settings in multiple environments using xcopy. Even when you specify the same configuration settings for multiple environments using xcopy, set the redirector manually in each environment.
(b) Notes on customizing the error page
If you have specified the settings for returning a custom error page in the error page of Microsoft IIS 7.0 or Microsoft IIS 7.5, the customization of the error page by the <error-page> tag of web.xml might be disabled. If you want to enable the customization of the error page by the <error-page> tag of web.xml, disable the settings of custom error page in the error page of Microsoft IIS 7.0 or Microsoft IIS 7.5.
(c) Points to be noted when using along with other filters
If Microsoft IIS receives requests that are to be forwarded to the Web container, the Redirector for Microsoft IIS changes the request URL information to be used in the ISAPI filter. Therefore, the request URL received by Microsoft IIS cannot be retrieved in the ISAPI filter if the ISAPI filter is executed after the Redirector for Microsoft IIS. Accordingly, you must make the settings in such a way that the filter is executed before the Redirector for Microsoft IIS, and the filter can retrieve the URL requests received by Microsoft IIS. To change the execution order, you can set the execution priority of the Redirector for Microsoft IIS by setting the value of the filter_priority key in the isapi_redirect.conf file (Operation Definition file of the Redirector for Microsoft IIS) to "Medium" or "Low". For details on the filter_priority key of the isapi_redirect.conf file (Operation Definition file of the Redirector for Microsoft IIS) see 9.2 isapi_redirect.conf file (Operation Definition file of the Redirector for Microsoft IIS) in the uCosminexus Application Server Definition Reference Guide.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.