The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Public link with Nginx/CloudFront get 403

Ben Rieger
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!
July 24, 2024

I'm trying to map public links path to a shorter path.
I'm using a Nginx reverse proxy.
The same happens with CloudFront.


This is the configuration:


server {
  listen 80;

  location /  {
    proxy_pass https://my-domain.atlassian.net/;
    proxy_http_version 1.1;
  }
  location /testdoc {
    proxy_pass https://my-domain.atlassian.net/wiki/external/SOME_PUBLIC_LINK_ID;          proxy_http_version 1.1;
  }
}




When I go to localhost:80/wiki/external/SOME_PUBLIC_LINK_ID everything works but when I go to localhost:80/testdoc I get the error "We couldn't find what you're looking for".
I can see that one of the requests to /cgraphql "internalFrontendResource" get 403.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Srinatha Tondihal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 14, 2026

Hello, 

The issue is that Confluence Cloud expects the full original URL path (like /wiki/external/SOME_PUBLIC_LINK_ID). When you map /testdoc to that path via Nginx, the main page might load, but some internal requests (like /cgraphql) get confused because they rely on the original structure or domain, and that can lead to 403 errors.

A few things to consider:

  • Confluence Cloud enforces strict rules for paths, origins, and CORS, so proxying to a different path often breaks resource loading or API calls.

  • Using a redirect (so /testdoc just redirects the browser to the full Confluence URL) usually works better than proxying.

  • If you must use a reverse proxy, try to preserve the original path structure as much as possible.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events