IIS 7.0 - Configuring the WebSphere Application Server Web server plug-in for multiple Web sites
Question
Internet Information Services 7.0 (IIS), which ships with Microsoft Windows 2008 & Microsoft Windows Vista, allows multiple Web sites to be run within a single IIS server. Given this ability, can the WebSphere Application Server Web server plug-in be used with multiple IIS Web sites?Answer
Yes. Using the plug-in with multiple IIS Web sites is supported, but requires
that each Web site run its own instance of the plug-in. The following guide
provides a detailed example for configuring the plug-in with two IIS Web sites.
Prerequisites
Creating the directory structure In the following example, the initial plug-in has been installed to:
C:\IBM\WebSphere\Plugins
WebSphere Application Server 7.0
WebSphere Application Server 6.1
WebSphere Application Server 6.0
Prerequisites
* |
Minimum plug-in versions: 7.0, 6.1.0.9, 6.0.2.33 |
* |
The following guide is meant as a post-install configuration. The initial plug-in installation wizard must be completed prior to performing these steps. |
Creating the directory structure In the following example, the initial plug-in has been installed to:
C:\IBM\WebSphere\Plugins
- From Windows Explorer, navigate to the plug-in install root and expand the
bin, config and logs subdirectories as shown below:
- Under each of the expanded directories (bin, config, logs), create a copy of
the current Web site-specific subdirectory as shown below:
- In this example, the original (webserver1) directories will be used for the
first Web site and the directory copies for the second Web site. While the
directory copies can be given any name without spaces, in this example, we
rename the copies as webserver2.
- Under the ..bin\IIS_webserver2 directory, open the
plugin-cfg.loc file in a text editor. Currently this points to the
plugin-cfg.xml under config\webserver1
C:\IBM\WebSphere\Plugins\config\webserver1\plugin-cfg.xml
- Change this so it points to config\webserver2
C:\IBM\WebSphere\Plugins\config\webserver2\plugin-cfg.xml
- Save & Close.
- Under the ..config\webserver2 directory, open the
plugin-cfg.xml in a text editor. Currently, the "Name" parameter of the
<Log> tag points to logs\webserver1:
<Log LogLevel="Error" Name="C:\IBM\WebSphere\Plugins\logs\webserver1\http_plugin.log"/>
- Change this so it points to logs\webserver2
<Log LogLevel="Error" Name="C:\IBM\WebSphere\Plugins\logs\webserver2\http_plugin.log"/>
- Save & Close.
- Launch the IIS Administrative Console.
- From the connections pane, select the Server node .
Double-click "ISAPI Filters" from the features pane and remove any filters which
point to the plug-in library (iisWASPlugin_http.dll). Example:
- From the connections pane, expand the Server node ,
right-click the "Application Pools" node and select "Add Application
Pool".
- Enter a name relevant for the first Web site (eg.
webserver1AppPool). Accept the remaining default values and click
OK.
- Repeat this step, creating a second Application Pool with a name relevant
for the second Web site (eg.
webserver2AppPool).
Example:
- Enter a name relevant for the first Web site (eg.
webserver1AppPool). Accept the remaining default values and click
OK.
- From the connections pane, expand the "Sites" node
and select the first Web site intended for the plug-in.
- From the actions pane, click "Basic Settings".
- Click the "Select" button and change the "Application pool" drop-down to
point to the Application Pool that was created for the first Web
site:
- Click OK / OK.
- From the features pane, double-click "ISAPI Filters", then click "Add" from
the actions pane.
- For the "Filter name" value, enter iisWASPlugin.
- For the "Executable" value, browse and select the iisWASPlugin_http.dll that
will be used for the first Web site:
- Click OK.
- Repeat this entire step for the second Web site making sure to choose the
relevant Application Pool and iisWASPlugin_http.dll:
- From the actions pane, click "Basic Settings".
- From the connections pane, right-click the first Web site and select "Add
Virtual Directory".
- For the "Alias" value, enter sePlugins.
- For the "Physical path" value, browse and select the directory containing
the iisWASPlugin_http.dll for the first Web site:
- Click OK.
- From the connections pane, select the 'sePlugins' virtual directory that was
just created.
- From the features pane, double-click "Handler Mappings", then click "Edit
Feature Permissions" from the actions pane.
- Put check marks next to "Script" and "Execute" if they are not already
enabled:
- Click OK.
- Repeat this entire step for the second Web site making sure to choose the
relevant iisWASPlugin_http.dll directory:
- For the "Alias" value, enter sePlugins.
- From the connections pane, select the Server node
. From the features pane, double-click "ISAPI and CGI Restrictions", then click
"Add" from the actions pane.
- For the "ISAPI or CGI Path" value, browse and select the
iisWASPlugin_http.dll that will be used for the first Web site.
- For the "Description" value, enter WASPlugin.
- Put a check mark next to "Allow extension path to execute" and click
OK.
- Click "Add" again.
- For the "ISAPI or CGI Path" value, browse and select the
iisWASPlugin_http.dll that will be used for the second Web site.
- For the "Description" value, again enter WASPlugin.
- Put a check mark next to "Allow extension path to execute" and click
OK.
Example:
- For the "ISAPI or CGI Path" value, browse and select the
iisWASPlugin_http.dll that will be used for the first Web site.
- Close the IIS Administrative Console and restart the following
services:
"IIS Admin Service"
"World Wide Web Publishing Service"
WebSphere Application Server 7.0
WebSphere Application Server 6.1
WebSphere Application Server 6.0
댓글 없음:
댓글 쓰기