Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence NGINX Proxy SSL

Karl Bateman September 3, 2014

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.

Regards,

Karl

2 answers

0 votes
Walter G. da Cruz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 19, 2015

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

confluence initial URL:  http://my.server.info:8090

you want to use:  https://my.server.info/wiki

 

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="my.server.info" proxyPort="80"
               ...

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

...

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

server {
    ...
    listen 443 ssl;
    ...
    server_name my.server.info;
    ...
    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. 

 

 

 

 

 

 

0 votes
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 7, 2014

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events