I have new Confluence 6.0 installed behing apache 2.4.18 running over SSL. When collaborative editing is enabled I cannot edit pages. Just stays there loading. I have followed the instructions provided by atlassian as best I could. Can anyone see what I have done wrong?
The Apache config:
<VirtualHost *:443>
ServerName my.example.dkProxyRequests Off
<Proxy *>
Require all granted
</Proxy>ProxyPass / http://localhost:8090/
ProxyPassReverse / http://localhost:8090/
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/vhhr_signed_cert.crt
SSLCertificateKeyFile /etc/apache2/ssl/privateKey.key
#SSLCertificateChainFile /etc/apache2/ssl/int.cer<Location />
Require all granted
</Location>ProxyPass /synchrony http://localhost:8091/synchrony
<Location /synchrony>
Require all granted
RewriteEngine on
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
RewriteRule .* ws://localhost:8091%{REQUEST_URI} [P]
</Location></VirtualHost>
<VirtualHost *:80>
ServerName my.example.dk
Redirect Permanent / https://my.example.dk/
Redirect Permanent /synchrony https://my.example.dk/synchrony
</VirtualHost>
The server.xml file:
<Server port="8000" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<Connector port="8090" connectionTimeout="20000" redirectPort="8443"
maxThreads="48" minSpareThreads="10"
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
protocol="org.apache.coyote.http11.Http11NioProtocol"
proxyName="my.example.dk" proxyPort="443" scheme="https" /><Engine name="Standalone" defaultHost="localhost" debug="0">
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false" startStopThreads="4">
<Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">
<!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
<Manager pathname="" />
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60" />
</Context>
</Host></Engine>
<!--
<Connector port="8443" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25"
protocol="org.apache.coyote.http11.Http11NioProtocol"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocols="TLSv1,TLSv1.1,TLSv1.2" sslEnabledProtocols="TLSv1,TLSv1.1,TLSv1.2" SSLEnabled="true"
URIEncoding="UTF-8" keystorePass="<MY_CERTIFICATE_PASSWORD>"/>
-->
</Service>
</Server>
Note I have change the actual url to "my.example.dk"
Hi @Timothy Harris,
Could you check the following link first: https://confluence.atlassian.com/confkb/editor-does-not-load-in-confluence-6-x-due-to-could-not-initialize-class-org-xerial-snappy-snappy-859462192.html
I have a quick look through the httpd.conf settings and I would like you to suggest the following change for virtual host 443
<VirtualHost *:443> ServerName my.example.dk ProxyRequests Off <Proxy *> Require all granted </Proxy> SSLEngine On SSLCertificateFile /etc/apache2/ssl/vhhr_signed_cert.crt SSLCertificateKeyFile /etc/apache2/ssl/privateKey.key #SSLCertificateChainFile /etc/apache2/ssl/int.cer RewriteEngine On RewriteCond %{REQUEST_URI} !^/synchrony RewriteRule ^/(.*) http://my.example.dk:8090/$1 [P] <Location /> Require all granted </Location> ProxyPass /synchrony http://localhost:8091/synchrony <Location /synchrony> Require all granted RewriteEngine on RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC] RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC] RewriteRule .* ws://localhost:8091%{REQUEST_URI} [P] </Location> </VirtualHost>
Your recommendation of switching the "ProxyPass /" to a RewriteRule worked for me. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Timothy Harris have you managed to solve this issue? I am facing a similar problem trying to configure Synchrony over SSL with reverse proxy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What does that rewrite do? Doesn't it just send everything which does not have /synchrony as base to port 8090?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, is passing all the requests not referring to synchrony, please refer to this documentation:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did anyone get this to work? I am also not able to get this to work. With the above modification I can now access Confluence fine. But when trying to edit a page (with Synchrony enabled) I get this error in the browser inspector:
failed: Unexpected response code: 500 when trying to access wss://my.domain.com/synchrony/...
any ideas? My set up is the same as above. Is there an inherent problem with apache and web sockets?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.