Configuring IIS with Tomcat

JIRA Documentation

Index

It is possible to set this up rather painlessly and the main documentation that we provide covers most use cases. But sometimes there are a few IIS configurations that differ from the default.

You are not using the "Default Website" in IIS

If you are in this boat, you will need to mimic what the Jakarta ISAPI installer created for you in the default website.

There will need to be two virtual directories:

One named 'jira'

Follow these steps to setup the 'jira' virtual directory

  1. Right-click on the website, go to New > Virtual Directory ...
  2. The alias needs to be called jira
  3. The path can point to any location, a temp directory, or perhaps your jira install location
  4. Check the "Execute (Such as ISAPI application of CGI)", then next and you are now finished.

Now in the properties for the 'jira' virtual directory confirm:

  1. The Execute Permissions is set to "Scripts and Executables" in the "Execute Permissions" section.


One named 'jakarta'

Follow these steps to setup the 'jakarta' virtual directory

  1. Right-click on the website, go to New > Virtual Directory ...
  2. The alias needs to be called jakarta
  3. The path needs to point to the bin directory of the Jakarta Isapi Redirector, ie: C:\Program Files\Apache Software Foundation\Jakarta Isapi Redirector\bin
  4. Check the "Execute (Such as ISAPI application of CGI)", then next and you are now finished.

Now in the properties for the 'jakarta' virtual directory confirm:

  1. "Script source access" is checked
  2. "Read" access is checked
  3. The Execute Permissions is set to "Scripts and Executables"
  4. The "Local Path" points to the bin directory of the Jakarta Isapi Redirector


You will also need to make sure that the non-default website has the Jakarta Redirector installed. This can be done by right-clicking on the non-default website, clicking 'properties' and then clicking on the "ISAPI Filters" tab.

From here you will need too:

  1. Click the "Add..." button
  2. Enter a filter name: jakarta
  3. Browse to the "isapi_redirect.dll" file located here: C:\Program Files\Apache Software Foundation\Jakarta Isapi Redirector\bin
  4. Click OK, Apply and then OK.


The final step is to restart the IIS Server, this can be done by opening the services.msc and clicking restart on "World Wide Web Publishing"

Gotcha's

  • If you are using IIS 6.0 did you remember to add the Jakarta Isapi Redirector to the Web Service Extension's and set the extension status to allow ?
  • Also for IIS 6.0 did you remember to add the Jakarta Isapi Redirector to the ISAPI Filters for the website?
  • Is Tomcat listening on port 8009? Try the following from the command prompt to make sure:
    netstat -na | findstr 8009
    
  • Have you given JIRA a context in Tomcat's server.xml?
    <Context path="/jira" docBase="${catalina.home}/atlassian-jira" reloadable="false">

    And does it match the virtual directory and value in your uriworkermap.properties file?

    /jira/*=wlb

Labels:

iis iis Delete
tomcat tomcat Delete
administration administration Delete
installation installation Delete
setup setup Delete
connectors connectors Delete
isapi-filter isapi-filter Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Jul 03

    Vincent Faidherbe says:

    Please don't forget that users has also to ensure that the "Network Service" and...

    Please don't forget that users has also to ensure that the "Network Service" and "Authenticated users" profiles have the "Read & Execute" permission for the directory where the connector dll is installed.  "Network Service" must have also the "Write" permission for the directory where the logs will be saved.