Configure IIS to forward requests to Confluence along with JIRA subdomain

Chnikki January 10, 2012

We are moving our webservers to Windows Server 2008. So I need to configure IIS 7.0 to forward requests to Confluence, JIRA and Crucible using subdomains. I am a newbie concerning web servers...especially IIS. On the old server we used reverse proxy in Apache which was extremely easy. Not an option this time around.

I got JIRA 4.4, Confluence 4.1 and Crucible 2.7 installed and running using localhost. We need to access them through subdomains....jira.yourdomain.com, wiki.yourdomain.com, crucible.yourdomain.com

I followed the instructions to Integrate JIRA with IIS. http://confluence.atlassian.com/display/JIRA044/Integrating+JIRA+with+IIS

I was having a hard time configuring JIRA using a subdomain until I came across this extremely helpful article. http://superuser.com/questions/365447/how-can-i-run-jira-on-windows-via-a-subdomain

To summarize:

  1. This is a general point - Ensure on the IIS Site you are told to create, the binding is mapped to port 80 with a host header of jira.yourdomain.com.
  2. In your JIRA\conf\server.xml file leave the path empty for the <Context path=""...> attribute where the wiki documentation tells you to specify one. Only enter one such as /jira for eg. if you are using sub-directories.
  3. Ensure your JIRA\conf\server.xml file port attribute of the <Connector...> element is set to something other than 80 which IIS will be running on. For instance the default I believe installs to 8080 so leave it at that.
  4. Lastly, in your tomcat_iis_connector\conf\uriworkermap.properties file used for the ISAPI proxy filter, make sure your worker entry is listed as: /*=worker1 and not /jira/*=worker1 which the documentation suggests you do.

That should be it, now run an iisreset and reboot of your JIRA service and you're good to go. Can't believe this isn't really detailed on the net or the sub-domain option wasn't detailed in the Atlassian Wiki.

Finally I had success accessing JIRA through the subdomain, jira.yourdomain.com after adding it to my host file. (c:\windows\system32\drivers\etc\hosts)

But I can't add confluence or crucible subdomains to the ISAPI Redirect. I started following the instruction Configuring JIRA and Confluence with IIS.

http://confluence.atlassian.com/display/JIRA044/Integrating+JIRA+with+IIS#IntegratingJIRAwithIIS-jiraandconfluencewithiis

I added worker2, but problem is if I'm not using a subdirectory, I don't know how to directly specify the port for Confluence in the ISAPI proxy filter. I copied worker1 and just changed it to worker 2 in the file tomcat_iis_connector\conf\uriworkermap.properties. I get an error: Duplicate key '/*' detected - previous value 'worker1' will be overwritten with 'worker2'.

I know it's got to be possible, but I am just unsure how to do this. Does anyone know how multiple subdomains can be setup?

1 answer

1 accepted

2 votes
Answer accepted
Tino Winkler [Communardo] January 16, 2012

Hi C Parker.

I had a similar issue: How to use one IIS to redirect to several instances on the same host having the same context-path (in your case none ;)). Finally I got it working. Let's see if I get it together:

  • create a new IIS Site for every other application you have to deploy
  • create copies of the ISAPI-Connector (the whole stuff, including configuration) in new directories for each of those applications and configure the port there
  • the virtual directory you are creating in your IIS Site must point to the related ISAPI-Connector directories

Hope that helps.

Chnikki January 18, 2012

Thank you Tino!! I figured it would be something like this, but I was unsure of what I was doing in the first place.

Suggest an answer

Log in or Sign up to answer