Hello,
I have a problem with configuring the proxy in Confluence. I configured by the article available in the knowledge base. However, when I try edit page with collaborative editing I get this error:
Something went wrong after loading the editor. Copy your unsaved changes and refresh the page to keep editing.
Here my server.xml and proxy configuration. Can anyone tell my where is a problem?
server.xml
<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"
scheme="https" proxyName="confluence.mydomain.com" proxyPort="443"/>
<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">
<!-- 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>
And my proxy setup
server {
listen confluence.mydomain.com:80;
server_name confluence.mydomain.com;
## redirect http to https ##
rewrite ^ https://$server_name$request_uri? permanent;
listen 443 default ssl;
ssl_certificate /etc/nginx/ssl/2019.cert.pem;
ssl_certificate_key /etc/nginx/ssl/2019.cert.key;
if ($http_host != "confluence.mydomain.com") {
rewrite ^ confluence.mydomain.com$request_uri permanent;
}
index index.php index.html;
location / {
allow 10.0.0.0/8;
allow 172.16.0.0/12;
allow 192.168.0.0/16;
deny all;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass https://192.168.8.45:8090;
include /etc/nginx/proxy_params;
access_log /var/log/nginx/confluence.mydomain.com-access.log;
error_log /var/log/nginx/confluence.mydomain.com-error.log;
access_log syslog:server=192.168.8.21:12301 graylog2_format;
error_log syslog:server=192.168.8.21:12302;
}
location /synchrony {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://192.168.8.45:8091/synchrony;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
#location ~* \.(js|css|jpg|jpeg|gif|png|svg|ico|pdf|html|htm)$ {
#}
}
Online 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.