I can not get Confluence and Jira to be served through NGINX. I would appreciate any help on this matter. I have followed several documents now, including atlassians, and configured confluence and NGINX accordingly, however when I change the context path in the confluence configuration as per the documentation, confluence no longer servers/comes up.
<Context path="/confluence"
results in a 404.
and with the config reverted, nothing forwards through NGINX. I've included the NGINX config below.
# HTTPS server
#
server {
listen 443;
server_name localhost;
ssl on;
ssl_certificate /etc/ssl/cert.pem;
ssl_certificate_key /etc/ssl/server.pem;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
root /usr/local/www/nginx;
index index.html index.htm;
}
location /jira {
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://<ip-of-jira-server>:8443/jira;
proxy_redirect off;
}
location /confluence {
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://127.0.0.1:8443/confluence;
proxy_redirect off;
}
}