problem with running Confluence with nginx.

We have a problem with running Confluence with nginx.

Confluence and nginx on one server.

Local address:
External address:

Our nginx config:
server {
             listen 80 default;
             location /confluence {
                 client_max_body_size 100m;
                 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;
              location /synchrony-proxy {
                 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_http_version 1.1;
                 proxy_set_header Upgrade $http_upgrade;
                 proxy_set_header Connection "Upgrade";
We added:
CATALINA_OPTS="-Dsynchrony.proxy.enabled=true ${CATALINA_OPTS}"
We added:
<property name="synchrony.proxy.enabled">true</property>

Our server config:


<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"
proxyName="" proxyPort="80" />

<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="false" useHttpOnly="true">
<!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/ -->
<Manager pathname="" />
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60" />

<Context path="/synchrony-proxy" docBase="../synchrony-proxy" debug="0" reloadable="false" useHttpOnly="true">
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60" />



But, when we launch confluence editor,
One script file, will have url:
(on screenshot)

2017-08-17 14.38.39.jpg

Because of this doesn't work confluence editor.

Whats is this our error? Or maybe bag?

1 answer

0 votes
Ann Worley Atlassian Team Aug 18, 2017

Please make sure the Base URL is set to

The server.xml you posted looks fine as far as proxyName and proxyPort.

Please check your configuration against these 2 documents:

Troubleshooting Collaborative Editing

How to use NGINX to proxy requests for Confluence

I look forward to hearing what you find.

How to change base url if we don't have system-administrator user? Where is this settings option stored, Is it somewhere in
the configuration files or in the database? We have h2db.h2.db database

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Tuesday in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

208 views 2 10
Read article

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