IIS Website Setup
Using Internet Information Services (IIS) Manager you can now create a new website definition that will be connected to your Apache Tomcat Catalina Base instance by performing the following steps.
- Expand the sitemap on the left until you find Sites
- Select Sites
- Select Add Web Site ...
- Set the following properties where ann is your new instance
Site name: Ittrium ann
Application Pool: Ittrium ann
Physical Path: Click ... to browse and select the webapps directory for your instance (ex. /var/ittrium/webserver/ann/webapps
Port = Any unique port through which you will access this site. For testing purposes we typically set the port to match the number of the app instance. For example a01 with port 81 and a02 with port 82. If you will be mapping a unique host name, you can set the port to the default port value of 80. - Uncheck "Start Immediately"
- Save your changes by clicking OK.
Create jakarta Virtual Directory
The jakarta virtual directory will be used to connect IIS to the ISAPI filter that is included with your new instance. Follow these steps to setup this virtual directory.
- Select Add Virtual Directory...
- Set the following properites
Alias: jakarta (this name must match exactly)
Physical Path: Press ... to browse and select the following directory.
/var/ittrium/webserver/ann/bin/windows/x64
This points to the directory that contains the isapi_redirect.dll and associated properties files.
Create site Virtual Directory
This directory is required by Ittrium and is used to locate standard public files that are required for building webpages such as images, css and javascript files.
- Select Add Virtual Directory...
- Set the following properites
Alias: site (this name must match exactly)
Physical Path: Press ... to browse and select the following directory.
/var/ittrium/webserver/ann/webapps/ittrium
Create images Virtual Directory
This is an optional virtual directory that is included directly under the site virtual directory. This directory is used when you want to reduce the burden on the Ittrium software by having the web server download images directory to the browser.
Follow these steps to setup the images virtual directory.
- Select site virtual directory that you just created in the previous step.
- Select Add Virtual Directory...
- Set the following properites
Alias: images (this name must match exactly)
Physical Path: Press ... to browse and select the following directory.
/var/ittrium/webserver/ann/webapps/ittrium/WEB-INF/blobs
Note: if your blobs are located elsewhere, you will need to change the physical path set here to match the directory location of your blobs.
Configure ISAPI Filter
The ISAPI filter is the actual code that connects IIS to Tomcat. We configure here so that we can support different filters for each instance of the Ittrium software. This also allows us to upgrade or configure the filter differently for each instance.
Follow these steps to configure your ISAPI filter.
- Select your website (e.g. Ittrium ann)
- Double Click ISAPI Filters option
- Click Add ...
- Set the following properties
Filter Name: jakarta-ann
Executable: Click ... to browse and select the isapi_redirect.dll for your instance.
/var/ittrium/webserver/ann/bin/windows/x64/isapi_redirect.dll
Allow ISAPI Filter
This is the final step to tell IIS that you really want to use the ISAPI filter. It's a bit redundant at this point, but you need to follow these steps to make it work.
- Click on the Server in the IIS site map on the left
- Click ISAPI and CGI Restrictions
- Click to Add ...
- Set the following properties
ISAPI or CGI Path: /var/ittrium/webserver/ann/bin/windows/x64/isapi_redirect.dll
Description: jakarta-ann
Allow extension path to execute: check this option - Click OK
You'll need to do this for each website you define provided that each website is using a unique ISAPI filter.
One More ISAPI Step - Handler Mappings
This is really the last ISAPI related step. I'm not even sure I know why we have to perform this step, but leave it to Microsoft to make things overly complex.
If you want your ISAPI filter to work, you need to perform this one last set of steps on each the jakarta virtual directory for each of your websites.
- Click on jakarta virtual directory
- Click Handler Mappings
- Click ISAPI-dll which is disabled by default
- Click Edit Feature Permissions...
- Check Execute
- Click OK
ISAPI Filter Configuration Changes
Next you need to update the ISAPI Filter configuration to reflect the location of the filter for your new instance by completing the following steps.
- cd /var/ittrium/webserver/ann/bin/windows/x64
- Edit isapi_redirect.properties
- Change a00 to ann for the following three parameters
log_file
worker_file
worker_mount_file
Note: The drive and path must match jakarta/ISAPI configuration you will setup later through IIS. If you receive an ISAPI error, check to verify that the drive and path have been entered correctly for all three parameters. - Save your changes
- Edit uriworkermap.properties
- Change a00 to ann for all map configurations listed
- Save your changes
- Edit worker.properties
- Change a00 to ann for the following items.
work.list
comment for the actual work
worker.a00.type
worker.a00.host
worker.a00.port - Change the actual worker port from 8009 to 8nn9
- Save your changes.
9. Stop and Start Web Wide Publishing Services
10. Start Website
11. Open browser and test new website.
12. Execute preset scripts 1 - 4