I'm looking into creating a reverse proxy configuration to our documentation hosted on Confluence pages. The urls of these pages are long, confusing and not work well with SEO, so it would really help if we could streamline this.
I'm trying to achieve this in one of our Gateway NGinx servers, but with limited success. Testing this on my local machine i can see that the reverse proxy initially works and loads the page with a HTTP 200 OK status - but somewhere in the subsequent flurry of scripts there's some 302 redirects and eventually a 404 Not Found, wiping the page again - see images below (retrieving the page directly works fine, btw).
This is the very basic NGinx configuration I'm testing with:
location = /docs/record {
proxy_set_header Host $proxy_host;
proxy_pass https://europeana.atlassian.net/wiki/spaces/EF/pages/2385674279/Record+API+Documentation;
}I also tried adding below proxy headers but that doesn't make any difference:
location = /docs/record/ {
proxy_set_header Host $proxy_host;
proxy_set_header Referer $http_referer;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass https://europeana.atlassian.net/wiki/spaces/EF/pages/2385674279/Record+API+Documentation;
}I also tried searching the knowledge base here, but no luck so far - I really have no idea where to start looking in that huge stack of 500+ loading events, requests, scripts, etc. to find some indication to what's missing.
Any suggestions would be most welcome!
Thanks in advance.
Hi @Luthien
Seems you are a bit confused. You've selected Jira Cloud as product for this post and are checking the NGINX config you have:
https://europeana.atlassian.net
This is Jira Cloud instance. not DC.
You cant use NGINX self hosted with Jira cloud.
If you want to do this with your on prem instance:
https://support.atlassian.com/jira/kb/configure-jira-to-run-behind-a-nginx-reverse-proxy/
Regards
Hi @Luthien
Like Aaron exmplained: you are on Atlassian Cloud (not on DC). And you can not reverse proxy an Atlassian Cloud site.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.