Installation Notes - bemokoLive on Microsoft Server with Tomcat and IIS

From bemoko developer wiki

Jump to: navigation, search

Configuring Tomcat and IIS 7 using ISAPI Filters

Prerequisites

These instructions assume that you have already installed and deployed bemokoLive onto Tomcat

IIS Configuration

  1. Install IIS7
    • Make sure IIS is installed with ISAPI Entensions and ISAPI Filters enabled
  2. Download isapi-redirect.dll from the tomcat-connectors project
  1. Create the filter properties file
    • Create a .properties file within $TOMCAT_HOME/isapi with the same name as the downloaded .dll file, for example isapi_redirect-1.2.27.properties
    # Configuration file for the Jakarta ISAPI Redirector
     
    # The path to the ISAPI Redirector Extension, relative to the website
    # This must be in a virtual directory with execute privileges
    extension_uri=/tomcat/isapi_redirect.dll
     
    # Full path to the log file for the ISAPI Redirector
    log_file=C:\development\apache-tomcat-6.0.16\logs\isapi_redirect.log
     
    # Log level (debug, info, warn, error or trace)
    log_level=info
     
    # Full path to the workers.properties file
    worker_file=C:\development\apache-tomcat-6.0.16\conf\workers.properties
     
    # Full path to the uriworkermap.properties file
    worker_mount_file=C:\development\apache-tomcat-6.0.16\conf\uriworkermap.properties
  2. Create workers.properties
    • This file configures the properties of the tomcat server instance. This is where clusters are configured if appropriate.
    • Create the file $TOMCAT_HOME/conf/workers.properties with the following content, changed to match your environment:
    # An entry that lists all the workers defined
    worker.list=worker1
    # Entries that define the host and port associated with these workers
    worker.worker1.host=localhost
    worker.worker1.port=8009
    worker.worker1.type=ajp13
  3. Create uriworkermap.properties
    • This file configures the URL patterns to forward to specific tomcat worker processing named above
    • Create the file $TOMCAT_HOME/conf/uriworkermap.properties with the following content
    /live/*=worker1

IIS Administration

  1. ISAPI and CGI Restictions
    • Select ISAPI and CGI Restirctions from the main server configuration
    Image:IIS_ISAPI_Restrictions.png
    • Add a new restriction with the followig properties
    ISAPI or CGI path = C:\development\apache-tomcat-6.0.16\isapi\isapi_redirect-1.2.27.dll 
      (use the value for your system)
    Description = Tomcat
    Select "Allow extension path to execute"
  2. Create a new virtual directory
    • Right click on the "Default Web Site", or the Site you are using.
    • Select "Add Virtual Directory..." and create a new virtual directory with the following properties:
    Alias = tomcat
    Physical path = C:\development\apache-tomcat-6.0.16\isapi 
      (use the value for your system)
  3. Tell IIS about isapi-redirect.dll
    • Within the Default Web Site (or alternative - see point 7) click ISAPI Filters
    Image:IIS_ISAPI_Filters.png
    • Add a new filter with the following values:
    Filter name = tomcat
    Executable = C:\development\apache-tomcat-6.0.16\isapi\isapi_redirect-1.2.27.dll 
      (use the value for your system)
  4. Enable the ISAPI-dll handler
    • Within the Default Web Site (or alternative - see point 7) click Handler Mappings
    Image:IIS_ISAPI_Handlers.png
    • If ISAPI-dll is in the disabled group:
    • Right click on ISAPI-dll and select Edit Feature Permissions
    • Make sure Read, Script and Execute are all checked
  5. Restart IIS service and test

Further Reading

  1. bemokoLive Minimum Hardware Requirements