Greetings!
My env:
Conflunce 6.15.6 ( 100 users) on Windows 7 with apache 2.4. 39 Win 64 reverse proxy.
I'm trying to set up access to Confluence by https. And can't do this.
When i try to edit page i get:
Mixed Content: The page at 'https://confluence/confluence/pages/viewpage.action?pageId=565872161' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://confluence/synchrony/heartbeat?_=1562167060607'. This request has been blocked; the content must be served over HTTPS.
How move synchrony to using https connector?
My httpd.conf:
<VirtualHost *:80>
ServerName myconfluence.com
ProxyRequests Off
# Auth changes in 2.4 - see http://httpd.apache.org/docs/2.4/upgrading.html#run-time
<Proxy *>
Require all granted
</Proxy>
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>
ProxyPass /jira http://localhost:8090/jira
ProxyPassReverse /jira http://localhost:8090/jira
ProxyPass /confluence http://localhost:8092/confluence
ProxyPassReverse /confluence http://localhost:8092/confluence
<Location />
Require all granted
</Location>
</VirtualHost>
<VirtualHost *:443>
ServerName confluence
ProxyRequests Off
<Proxy *>
Require all granted
</Proxy>
SSLEngine On
SSLCertificateFile "C:\Apache24\cert\confluence.crt"
SSLCertificateKeyFile "C:\Apache24\cert\confluence.key"
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/synchrony
ProxyPass /synchrony http://confluence:8091/synchrony/
<Location /synchrony>
Require all granted
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
RewriteRule .* ws://confluence:8091%{REQUEST_URI} [P]
</Location>
<Location /confluence>
Require all granted
RewriteEngine on
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
RewriteRule .* ws://confluence:8093%{REQUEST_URI} [P]
</Location>
ProxyPass /jira/ http://confluence:8090/jira/
ProxyPassReverse /jira/ http://confluence:8090/jira/
ProxyPass /confluence/ http://confluence:8093/confluence/
ProxyPassReverse /confluence/ http://confluence:8093/confluence/
<Location /confluence>
Require all granted
</Location>
</VirtualHost>
My server.xml:
<Server port="8000" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<Connector port="8092" connectionTimeout="20000" redirectPort="8443"
maxThreads="48" minSpareThreads="10"
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
protocol="org.apache.coyote.http11.Http11NioProtocol"
scheme="http" proxyName="confluence" proxyPort="80"/>
<Connector port="8093" connectionTimeout="20000" redirectPort="8443"
maxThreads="48" minSpareThreads="10"
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
protocol="org.apache.coyote.http11.Http11NioProtocol"
scheme="https" secure="true" proxyName="confluence" proxyPort="443"/>
<Engine name="Standalone" defaultHost="localhost" debug="0">
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false" startStopThreads="4">
<Context path="/confluence" docBase="../confluence" debug="0" reloadable="true" useHttpOnly="true">
<!-- 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>
<Context path="${confluence.context.path}/synchrony-proxy" docBase="../synchrony-proxy" debug="0"
reloadable="false" useHttpOnly="true">
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60"/>
</Context>
</Host>
</Engine>
</Service>
</Server>