Has anyone gotten this IIS proxy to work with Confluence Collaborative Editing (Synchrony)?

This question is in reference to Atlassian Documentation: Proxying Atlassian server applications with Microsoft Internet Information Services (IIS)

We cannot get the editor to load - it just sits there spinning for awhile and then keeps saying it's taking longer than normal for the editor to load - if we leave collaborative editing turned on after upgrading to Confluence 6.0 (6.0.3 we are on).  We have an IIS advanced routing setup almost identical to the referenced article on our server where we host Confluence (and JIRA).

I believe I have tried everything referenced in these articles as well:

I even checked all this:

S8DFnSv[1].png

Has anyone gotten this working in an IIS reverse proxy environment using ARR 3.0?  Would greatly appreciate any insight, thanks!

4 answers

Try adding this to your web.config file

 

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="Synchrony HTTP" enabled="true" stopProcessing="true">
<match url="synchrony/(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="http://localhost:8091/synchrony/{R:1}" />
</rule>
<rule name="Synchrony Web Sockets Reverse Proxy" enabled="true" stopProcessing="true">
<match url="ws://(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="ws://localhost:8091/{R:1}" />
</rule>
<rule name="Confluence Reverse Proxy" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="http://localhost:8090/{R:1}" />
</rule>
</rules>
</rewrite>
<security>
<requestFiltering allowDoubleEscaping="true" />
</security>
</system.webServer>
</configuration>

Thanks for the suggestion, already had that in there.

Thanks Phil, adding the rewrite rules for synchrony and ws:// worked.

There is an issue with IIS 8 where it doesn't handle the Sec-WebSockets-Extension permessage-deflate header.  To resolve this modify your confluence/bin/setenv.bat to contain the line

set CATALINA_OPTS=-Dorg.apache.tomcat.websocket.DISABLE_BUILTIN_EXTENSIONS=true %CATALINA_OPTS%

after the other catlina options have been set.

I think I'm going to just wait for Confluence 6.1 at this point... supposed to make running collaborative editing behind a reverse proxy not require all this messing around.

Well, I upgraded to Confluence 6.1, which is supposed to make it "just work" but after fiddling around with it for 4+ hours I had to give up and turn off collaborative editing again.  *sigh*  I even tried rolling back some of what I previously did as the release/upgrade notes suggested.

I am still having issues with my iis proxy and collaborative mode and it not working properly. I get errors when users try to discard all changes, and now when users are editing sometimes, they can't save any updates, it gives an error that confluence can't access the server. If I test through localhost, everything works, but something on the web facing end is not working, just not sure what it is.

Hello Adam, do you have fixed the Collaboratice Editing?

No - granted we are still on 6.1 and now looks like 6.3 is out, but I have seen no mention in the release notes of making this any easier to work with.

This sounds bad. Do you know where the web.config file is located?

Yes.  It is in the root directory of your IIS website or virtual directory.  This is for the IIS proxy itself, not for Confluence.  Confluence does not have a web.config, it is a Java Tomcat app (I think) so it has other configuration files.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

583 views 20 11
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you