We recently installed Confluence (from Atlassian) onto one of our servers. Confluence runs its own web server, and since we already have IIS running on port 80 (as standard on a Windows Server OS), we configured Confluence to run on a diferrent port. One thing we don't like however, and which our non-technical staff especially hate, is having to remember port numbers (in this case port 8081) when typing a browser address. The IIS 7 URL Rewrite module is a solution which allows us to transparently forward requests on the standard port 80 to another port.
For example if your Confluence installation runs on http://localhost:8081, you can set up an address like http://confluence.mydomain.com to access it using URL Rewriting.
You can configure the URL rewriting settings via the GUI, or you can edit them via a web.config, which is placed in the root folder of the site. The web.config I use is given below.
At this point you should be able to check and see if it is all working by browsing to your site, e.g. http://confluence.mydomain.com
If you are having trouble setting up your URL Rewriting, it is useful to know that there is a way to view a comprehensive trace of the process, follow this link for details.
Sample extract of a working web.config:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Reverse Proxy to confluence" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" />
<action type="Rewrite" url="http://localhost:8081/{R:1}" logRewrittenUrl="true" />
<conditions>
<add input="{QUERY_STRING}" pattern="*8081*" negate="true" />
</conditions>
</rule>
</rules>
</rewrite>
<security>
<requestFiltering allowDoubleEscaping="true">
<requestLimits maxUrl="4096" maxQueryString="2048" />
</requestFiltering>
</security>
</system.webServer>
</configuration>
Call us on:
(02) 8213 2440