Previous Topic: Create the workers.properties File

Next Topic: Edit the Apache httpd.conf File

Create the mod_jk.conf File

After you create the workers.properties file, create the mod_jk.conf file manually. You will include the mod_jk.conf file in the Apache httpd.conf file that you edit in the next procedure.

To create the mod_jk.conf File
  1. Change to the following directory:
    Apache_install_dir\conf
    
    Apache_install_dir

    Specifies your Apache installation directory.

  2. Create a text file named mod_jk.conf in this directory.
  3. Add the following lines to the mod_jk.conf file:
    #Apache HTTP Server & Tomcat NON-SSL Configuration...
    # Loads the Jakarta Tomcat Connector module
    LoadModule jk_module "Apache_install_dir\modules\mod_jk.dll"
    # Tells the module the location of the workers.properties file
    JkWorkersFile "Apache_install_dir\conf\workers.properties"
    # Specifies the location for this module's specific log file <optional>
    JkLogFile     "Apache_install_dir\logs\mod_jk.log"
    # Sets the module's log level to info <optional>
    JkLogLevel    info
    # Sets the module's log time stamp format <optional>
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    # Sets a mount point from a context to a Tomcat worker. In this case
    # will allow access (forward the request) to the WADEWeb.
    JkMount /WADEWeb ajp13
    JkMount /WADEWeb/* ajp13
    

    Notes:

  4. Replace the Apache_install_dir variable with your Apache installation directory.
  5. Save the mod_jk.conf file.

    The mod_jk.conf file is created.