The content on this page relates to platforms which are not supported for Confluence. Consequently, Atlassian can not guarantee providing any support for the steps described on this page. Please be aware that this material is provided for your information only and that you use it at your own risk. |
This page describes how to install Confluence with IIS using the Apache jk connector.
If you are using JIRA as well as Confluence, please refer to this page in the JIRA documentation instead.
On this page:
Step 1. Install IIS
If you are running Windows Server 2003, you will only be able to use IIS 5.1 or 6. If you are using Windows Server 2008, you might like to install IIS 7.
IIS 6
If you are using Windows Server 2003 or XP professional, follow these instructions for installing IIS 6.
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.
IIS 7
Similar to the previous Windows versions, IIS is not installed by default in Windows Server 2008 so you need to install it manually.
- Start your
Server Manager. - Click 'Roles'.
- In the right hand panel, click "Add Roles".
- A new window will pop up. Select the 'Web Server (IIS)' option.
- Click 'Next' until you see another set of checkbox options to install the required 'Roles Services' for the web server (IIS).
- Scroll down to 'Application Development' and tick the following:
- CGI
- ISAPI Extensions
- ISAPI Filters
- Click 'Next'.
- And lastly, click 'Install'.
To check that IIS has been installed successfully, you can direct your browser to http://localhost/ and see the IIS 7 logo.
You can learn more about IIS 7 from this website.
Step 2. Install Confluence
Do a normal Confluence installation, after which you should be able to use confluence as usual through the URL http://localhost:8090.
Step 3. Configure Tomcat
Add another connector to your server.xml file, directly after the existing <Connector ... /> tag:
Restart Confluence.
In the logs/catalina.YYYY-MM-DD.log file you should see the Jk is running:
Step 4. Configure the Tomcat Connector
These instructions are based on the Tomcat Connector, IIS Configuration documentation.
- Download the isapi_redirect.dll from the apache tomcat download page - click 'browse download area' to search for the file.
- For example, you will find the win32 binaries here: http://apache.wildit.net.au/tomcat/tomcat-connectors/jk/binaries/win32/ and if the current version is 1.2.27, you will download this file: http://apache.wildit.net.au/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.27/isapi_redirect-1.2.27.dll.
Make sure you rename the file to isapi_redirect.dllbefore using it otherwise it will not work.
- For example, you will find the win32 binaries here: http://apache.wildit.net.au/tomcat/tomcat-connectors/jk/binaries/win32/ and if the current version is 1.2.27, you will download this file: http://apache.wildit.net.au/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.27/isapi_redirect-1.2.27.dll.
- Place the isapi_redirect.dll 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) - 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_iisas 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.
- Note that this sample properties file assumes that the dll is named
- Create workers.properties and uriworkermap.properties files. You can use the sample workers.properties file and the sample uriworkermap.properties file.
- Create an empty file named rewrites.properties in
c:\ajp_iis.
Step 5. Connect Confluence with IIS
Connect Confluence with IIS, depending on your version of IIS:
- To connect Confluence with IIS 5.1 or 6 please refer to Connecting Confluence with IIS 5.1 or 6.
- For IIS 7 please refer to Connecting Confluence with IIS 7.
RELATED TOPICS
- Connecting Confluence with IIS 5.1 or 6
- Connecting Confluence with IIS 7
- 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.
- Supported Platforms








12 Comments
Hide/Show CommentsMay 04, 2008
Nicholas Muldoon [Atlassian]
Dylan Beattie has posted of how he got Confluence up and running on IIS6 here:
http://dylanbeattie.blogspot.com/2008/05/getting-started-with-confluence.html
Feb 07, 2011
Dylan Beattie
Not quite. What I did was to get Confluence running alongside IIS on a single server - I was still using Tomcat to host the Confluence engine itself, but this configuration meant I could run IIS and ASP.NET websites on the same server as the Confluence wiki.
Aug 21, 2008
mohamed elwedany
when i used the connector from iis to tomcat using the dll and instruction provided in http://confluence.atlassian.com/display/DOC/Setting+up+Confluence+with+IIS
the iis is set on port 80 and the tomcat set on 8080
i faced a problem that the pages in subfolders doesn't apear asexample the http://localhost/loginconfluence/display/~admin
and after debuging i found that the the url cann't be redirected to http://localhost:8080/loginconfluence/display/~admin
so i added in the uriworkermap.properties
# uriworkermap.properties - IIS
/loginconfluence/*=ajp13w
/loginconfluence//=ajp13w
but still the connector reidirect the /loginconfluence/* and not the /loginconfluence/display/*
so please tell me what is teh solution?
mohamed
Sep 03, 2008
Tony Cheah Tong Nyee
Hi Mohamed,
To my understanding, in order for IIS to be able to resolve the remaining host path, the following configuration should take place in the
uriworkermap.propertiesfile:However, the you may need to check and confirm if the worker.list value in the
workers.propertiesfile is correctly named and ensure that the correct worker is pointing to the correct application server.Cheers,
Tony
Feb 19, 2009
Liam Jones
Step 3 says to add:
On 2.8.1 (the version we're currently running) the standard Confluence connector had a redirectPort of 8444 and the added AJP connector a redirectPort of 8443 (as stated above).
However, with 2.10.2 (which I'm getting ready to test an upgrade to) the standard Confluence connector redirectPort has been changed to 8443. I assume I'm going to need to change one or the other in 2.10.2 so the redirectPorts are different?
Dec 03, 2010
Komathi Krishnan [Atlassian]
Hi Liam,
You do not need to worry about the "redirectPort" for both the standard Confluence connector and AJP connector for your 2.10.2, unless you are setting up a secured connection for Confluence.
Hope that helps!
Cheers,
Komathi
Feb 26, 2009
Liam Jones
Ah, okay. Thanks Komathi!
May 28, 2010
jason kim
Hi, I have a question about step 3. Before I found this article, I set tomcat to run on port 80. However, I'd like to use port 80 in IIS as well. My question is, do I change the original connector port back to 8080 and another another identical connector with port 80 (in addition to 8080)? Also, the IIS setup instruction refers to jakarta. What is that in reference to setting up IIS? Sorry, I am new to this and anything would be helpful.
Jason
Aug 09, 2010
san
Hi, do you see any problem in the long-run by running Confluence on IIS. Like any customizations done to pre-IIS Confluence , future upgrades of Confluence ?
Thanks,
San.
Apr 04, 2011
Anonymous
Has anyone tried to connect confluence with the new connector published on riaforge. It is supposed to connect IIS and Tomcat etc.
http://tomcatiis.riaforge.org
Aug 18, 2011
Anonymous
I have the redirector working but it is REALLY slow - around 10-15 second to display each page. Connecting to the tomcat server directly via :8080 is quick.
Ideas?
Nov 30, 2011
Anonymous
I have used the BonCode connector same as above (tomcatiis.riaforge.org). I ran several million hits as baseline test, and it was stable with good performance.
If you are using tomcat directly as webserver, you can probably turn off IIS.
Add Comment