Confluence NGINX Proxy SSL

Hello All,

I just wondered if anyone could provide a simple guide for setting up confluence to run with an NGINX reverse proxy. Either NGINX accepting SSL connections and sending them to confluence as http or https.



2 answers

Assuming you already has Confluence and nginx working, and you just need to connect them:

confluence initial URL:

you want to use:


on confluence server.xml file:



        <Connector port="8090" connectionTimeout="20000" redirectPort="8443"
                maxThreads="200" minSpareThreads="10"
                enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
                proxyName="" proxyPort="80"

                <Context path="/wiki" docBase="../confluence" debug="0" reloadable="true">


on /etc/nginx/sites-enabled/default:

server {
    listen 443 ssl;
    ssl_certificate /etc/nginx/ssl/apache.crt;
    ssl_certificate_key /etc/nginx/ssl/apache.key;
    location /wiki {
        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://localhost:8090/wiki;

Restart Confluence; then, restart nginx, and give it a try. 







Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

913 views 23 12
Join discussion

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