Nov 14, 202512:49 PM - last edited
a month ago
by BérangèreL
Member
Hi,
We’re migrating an existing website to HubSpot and have set up a reverse proxy via AWS CloudFront following HubSpot’s guidance. Most of the verification checks are failing, and we’re looking for help diagnosing why the asset-related tests return 404 while other checks succeed.
Could someone advise what typically causes the /hubfs and /hs-fs and static assets reverse proxy validation checks to 404 when the other checks (diagnostics, status, script loader, DCV) are passing?
Moderator note: The HubSpot Community is a public space. I have therefore edited your content for security & confidential reasons.
I’ve added the hsverify TXT record to our DNS, in addition to the records listed in Verify Reverse Proxy. I now see that the domain says, “Connected through reverse proxy” and the status check at /_hcms/status returns OK. But the static asset validation pages (hubfs, hs-fs etc.) are still resolving to 404 or File not found.
Could someone help me debug why asset validation pages says 404 Not Found.
Hi @sarvani24 and thanks for sharing these updates!
For CloudFront reverse proxy with 404 errors on static assets (hubfs, hs-fs), ensure your cache behaviors explicitly allow these paths: /_hcms/*, /hs/*, /hubfs/*, /hs-fs/hubfs/*, /hs-fs/*, /cs/c/*, and /e3t/*.
Note that hs-fs/hubfs/* was added on December 2024.
- In CloudFront Behaviors tab, create separate behaviors for each required path pattern
- Set each behavior's origin to your HubSpot origin (e.g., 123456.sites-proxy.hscoscdn00.net)
- Verify your Origin Request Policy forwards cookies, query parameters, and headers (especially User-Agent)
- Check https://[yourDomain]/_hcms/diagnostics to confirm configuration
The 404s likely mean CloudFront isn't routing those specific asset paths to HubSpot's origin.
Thank you BérangèreL for the response, I checked all the points mentioned above and they looks right to me. Our /_hcms/diagnostics is returning 200 with all the details correctly including user-agent.
Please check the screenshots of the CloudFront setup attached. Let me know if you want me to share the diagnostics results in here as well.
Thank you!CloudFront behaviorsCloudFront request origin/_hcms/diagnostics result
Hi @sarvani24 and thanks for sharing this additional information!
if your /_hcms/diagnostics is returning 200 with all details correctly including user-agent, your CloudFront reverse proxy configuration appears to be working correctly.
You should verify that diagnostics returns proper headers.
If all checks pass, your setup is correct.
Let us know how it goes! Bérangère
This post was created with the assistance of AI tools.
Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.
According to the reverse proxy support guide, these specific paths (/hubfs/*, /hs-fs/*, /cs/c/*, /e3t/*) must be configured to proxy to HubSpot for assets to load properly.
The 404 errors you're seeing are not issues from HubSpot's side, they're validation tests checking if your reverse proxy is correctly forwarding these paths.
You can please try the following steps:
- Ensure your reverse proxy configuration allows all of these paths: /_hcms/*, /hs/*, /hubfs/*, /hs-fs/hubfs/*, /hs-fs/*, /cs/c/*, and /e3t/* - Verify your proxy forwards all request/response headers and query strings as-is - Visit https://[yourFullDomain]/_hcms/_worker/headers to view all headers HubSpot receives from your proxy and confirm proper configuration.
Thanks! Bérangère
This post was created with the assistance of AI tools.
Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.