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
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.
Not the Confluence documentation but similar (https://confluence.atlassian.com/display/STASH/Securing+Stash+behind+nginx+using+SSL).
Already asked before too:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.