This page last changed on Apr 18, 2008 by smaddox.

This page describes how to install Confluence Standalone with IIS using the Apache jk connector.

If you are using JIRA as well as Confluence, please see this document instead. 

 Install IIS 

Follow these instructions for installing IIS

After installation is complete you should be able to go to http://localhost/iishelp/iis/misc/default.asp in your browser and see the IIS getting started page.

Install Confluence Standalone

Do a normal Confluence install, after which you should be able to use confluence normally through the URL http://localhost:8080

Configure Tomcat

Add another connector to your server.xml file, directly after the existing <Connector ... /> tag

<Connector port="8009" enableLookups="false" redirectPort="8443"
protocol="AJP/1.3" URIEncoding="UTF-8" />

Then re-start Confluence, in the logs/catalina.YYYY-MM-DD.log file you should see the Jk is running:

INFO: Starting Coyote HTTP/1.1 on http-8080
7/09/2006 14:40:04 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
7/09/2006 14:40:04 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31&nbsp; config=null

Configure the Tomcat Connector

These instructions are based on the Tomcat Connector, IIS Configuration documentation.

  1. Download the isapi_redirect.dll from the apache tomcat download page - click 'browse download area' to search for the file.
  2. Place the downloaded file in a directory c:/ajp_iis (the name of the directory isn't important, but if you use a different one make sure to take account of this in the instructions which follow)
  3. Create a isapi_redirect.properties file in the same directory as you put the DLL. You can use this sample isapi_redirect.properties file if you have used ajp_iis as the directory name.
    • Note that this sample properties file assumes that the dll is named isapi_redirect.dll. If you want to name your DLL something else, you must edit this file.
  4. Create workers.properties and uriworkermap.properties files. You can use the sample workers.properties file and the sample uriworkermap.properties file.
  5. Create an empty file named rewrites.properties in c:/ajp_iis
  6. Enable the plugin within IIS
    1. Using the IIS management console (Internet Information Services in Administrative Tools), add a new Virtual Directory to your IIS web site. The name of the virtual directory must be jakarta, as it must correspond with the first part of the extension_uri setting specified in the isapi_redirect.properties file. Its physical path should be the directory where you placed isapi_redirect.dll (in the example it is C:\ajp_iis ). When creating this new virtual directory, give it execute access as well.

    2. Using the IIS management console, add isapi_redirect.dll as a filter to your IIS web site. To do this, right click on the Web Sites icon from the left hand pane of the Internet Services Manager (or IIS management console), select Properties and then the ISAPI Filters tab. The name of the filter should reflect its task, for example confluence, and its executable must be the full path to the ajp isapi redirector DLL, that is c:\iis_ajp\isapi_redirect.dll
    3. Restart IIS (stop and start the IIS service - not just the web server -- do this by right-clicking on 'Local Computer' in the IIS Manager and choosing All Tasks, Restart IIS...). Ensure that the confluence filter is marked with a green up arrow verifying that it is loaded and initialized correctly. If the ajp redirector did not initialize properly, check the log file for errors messages (C:\ajp_iis\ajp_plugin.log).

You can now go to http://localhost and see the Confluence Dashboard.

Other Configuration

If you want to run Confluence on a named context, rather than the root context (i.e. access it via http://host/confluence/ instead of just http://host) you need to:

  1. Change the path attribute of the Context tag in server.xml from "" to "/confluence".
  2. Change the line /*=ajp13w in uriworkermap.properties to /confluence/*=ajp13w

Note that 'http://host/confluence' gives a 404 error, but 'http://host/confluence/' works

IIS 6.0

  1. If using IIS 6.0 you will also need to add the Jakarta Isapi Redirector to the Web Service Extension's .
  2. Right-click on Web Service Extensions and choose Add a new Web Service Extension...
  3. Enter tomcat for the Extension Name and then add the isapi_redirect.dll file to the required files.
  4. Check the Set extension status to Allowed and then click on OK.
  5. Also add the Jakarta Isapi Redirector to the ISAPI Filters for the website

Troubleshooting

If you have problems, look in the System Event Log, the c:\iis_ajp\ajp_plugin.log and your confluence logs.

When requesting support for IIS configuration problems, please include:

  1. A zip of your logs directory
  2. A zip of your c:\iis_ajp directory
  3. Your conf/server.xml file
  4. A screen shot of the Virtual Directory tab of the Properties window for your 'jakarta' virtual directory.
  5. A screen shot of the ISAPI Filters tab of the Properties window of your 'Web Sites' icon.
RELATED TOPICS

JIRA's documentation on Configuring IIS with Tomcat, including how to integrate both Confluence and JIRA with the same IIS instance. The Troubleshooting section there is relevant to Confluence as well as JIRA.


uriworkermap.properties (application/octet-stream)
workers.properties (application/octet-stream)
isapi_redirect.properties (application/octet-stream)
iss_setup_1.png (image/png)
access_permission.png (image/png)
iss_setup_3.png (image/png)
iss_setup_3.png (image/png)
iss_setup_4.png (image/png)
Document generated by Confluence on Jun 24, 2008 18:04