Setting up reverse proxy breaks calls-to-action links

Hi there,

I am in the process of setting up CloudFront to act as a reverse proxy so we can redirect users based on their IP geolocation .

I am following this article: Accounts Dashboard | HubSpot

This seems to work except that all the calls-to-action buttons break. When clicking on one it opens a new tab with the following error message:

{“status”:“error”,“message”:“No portal supplied for XXXXXX.sites-proxy.hscoscdn10.net”,“correlationId”:“fd268dcd-8223-4c5b-8d1b-ec8667b32e03”}

Where XXXXXX=HubID

Not sure what this means or why simple links are breaking? The HubSpot CTA don’t seem to be direct links, I assume this is because they are capturing metrics? Any assistance here would be greatly appreciated.

Hi, @JNaughton :waving_hand: Welcome to the community! I want to make sure you’ve seen this thread — Lessons Learned from Setting up a Reverse Proxy With HubSpot CMS (includes sample nginx config!). It continues to have an active discussion.

Hey, @LMeert @coldrickjack @nikodev, do you have any experience with reverse proxies and HubSpot CTAs?

Best,

Jaycee

Hi Jaycee

Yes I was referncing that article while trying to set it up but it doesn’t specifically mention this problem

Cheers

Jake

I ended up resolving this issue.

The problem ended up being it wasn’t forwarding all query strings by default in the cache policy. Once I fixed this up, all the CTA started working.