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

*This question is in reference to Atlassian Documentation: [Proxying Atlassian server applications with Microsoft Internet Information Services (IIS)](https://confluence.atlassian.com/pages/viewpage.action?pageId=833931378)*

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:

* <https://confluence.atlassian.com/confeap/troubleshooting-collaborative-editing-847355677.html>
* <https://confluence.atlassian.com/kb/proxying-atlassian-server-applications-with-microsoft-internet-information-services-iis-833931378.html>

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!  
[](https://community.atlassian.com/t5/Confluence-questions/Has-anyone-gotten-this-IIS-proxy-to-work-with-Confluence/qaq-p/109466?attachment-id=876){#link_118faafae1bd29}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/18296/1/S8DFnSv%5B1%5D.png){#display_118faafae1bd29_0}


Answers:
author: Justin Greene
body: 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.

comments: author: leer-anofsinger
body: 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.


author: adamnoffie
body: 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.


author: Phil Jackson
body: 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\>

comments: author: adamnoffie
body: Thanks for the suggestion, already had that in there.


author: Blaise Barstow
body: Thanks Phil, adding the rewrite rules for synchrony and ws:// worked.


author: Pierre
body: Hello Adam, do you have fixed the Collaboratice Editing?

comments: author: adamnoffie
body: 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.


author: Pierre
body: This sounds bad. Do you know where the web.config file is located?


author: adamnoffie
body: 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.


author: Phil Jackson
body: 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.


Tags: iis

proxy

synchrony