# Adobe Commerce Cloud - Reverse Proxy

**URL:** <https://community.hubspot.com/t/adobe-commerce-cloud-reverse-proxy/136405>\
**Category:** CMS Development\
**Tags:** professional\
**Created:** [July 17, 2025, 12:13pm UTC](https://community.hubspot.com/t/adobe-commerce-cloud-reverse-proxy/136405 "2025-07-17T12:13:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CR33](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cr33/32/207960_2.png) [@CR33](https://community.hubspot.com/u/CR33)\
**Post date:** [July 17, 2025, 12:13pm UTC](https://community.hubspot.com/t/adobe-commerce-cloud-reverse-proxy/136405/1 "2025-07-17T12:13:21Z")

</div>

Hi Guys,  
We are trying to set up the reverse proxy to show the blogs under our Main website.  
For example,  
Magento main website - [www.site.com](http://www.site.com)  
Blogs - [blogs.site.com](http://blogs.site.com)  
We need to display the [blog.site.com/blog-1](http://blog.site.com/blog-1) content under the [www.site.com/blog-1](http://www.site.com/blog-1) to get the SEO benefits on our Main domain.  
How can we do it for Adobe Commerce Cloud?  
Thanks,  
Chandru R

---

<div class="post-metadata">

**Author:** ![BrandonWoodruff](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/brandonwoodruff/32/61045_2.png) [@BrandonWoodruff](https://community.hubspot.com/u/BrandonWoodruff)\
**Post date:** [July 17, 2025, 1:20pm UTC](https://community.hubspot.com/t/adobe-commerce-cloud-reverse-proxy/136405/2 "2025-07-17T13:20:06Z")

</div>

* * *

Hi Chandru,

Great question — and one that comes up often when folks are trying to consolidate SEO authority on a primary domain. To achieve your goal of displaying [blogs.site.com/blog-1](http://blogs.site.com/blog-1) content under [www.site.com/blog-1](http://www.site.com/blog-1) (while keeping it technically hosted on the subdomain), you’ll want to configure a **reverse proxy** at the edge layer of Adobe Commerce Cloud (ACC). Here’s a breakdown of the approach:

### Objective:

You want:

[www.site.com/blog-1](http://www.site.com/blog-1) → pulls content from → [blogs.site.com/blog-1](http://blogs.site.com/blog-1)

### How to do it on Adobe Commerce Cloud (formerly Magento Cloud):

Adobe Commerce Cloud is built on a Fastly CDN and uses VCL (Varnish Configuration Language) for edge routing logic. Here’s the high-level setup:

#### 1. **Use Fastly’s custom VCL snippets** :

You can insert a custom recv or fetch VCL snippet in your Fastly configuration to proxy requests.

Example:

if (req.url.path ~ “^/blog-”) {

set req.backend = F\_blog; set req.url.host = “[blogs.site.com](http://blogs.site.com)”; set req.url = regsub(req.url, “^/blog-”, “/blog-”); }

Where F\_blog is a custom backend pointing to [blogs.site.com](http://blogs.site.com).

> Note: You’ll define this backend in your Fastly config as part of your Adobe Commerce Cloud project settings.

#### 2. **Enable CORS and proper Host headers** :

Make sure [blogs.site.com](http://blogs.site.com) accepts requests that originate from [www.site.com](http://www.site.com). If the blog is hosted on HubSpot, WordPress, or another CMS, ensure:

- CORS headers are set (if JS or embedded content is needed)
- Host header forwarding is allowed (some CMSs might reject the proxy request if the Host header isn’t expected)

#### 3. **Handle Canonical URLs and SEO headers** :

Use rel=“canonical” tags carefully to avoid duplicate content flags. Your proxied blog pages should emit canonical links pointing to [www.site.com/blog-1](http://www.site.com/blog-1), not the original [blogs.site.com](http://blogs.site.com) address.

#### 4. **Test with Curl or Staging** :

Once set, test your routing using:

curl -I [https://www.site.com/blog-1](https://www.site.com/blog-1)

Look for X-Backend headers (or custom logs) that verify the content is being fetched from [blogs.site.com](http://blogs.site.com).

* * *

**Important Caveats** :

- This setup is **not recommended** for dynamic blog platforms like HubSpot if you’re trying to handle smart content, personalization, or session-based logic — those features may not play well through a reverse proxy.
- You’ll need access to Adobe Commerce Cloud’s environment configurations and Fastly portal (or via Adobe’s support team) to set this up.

If your blog is on HubSpot and you’d prefer tighter integration without proxy complexity, you might also consider using [HubSpot CMS Memberships or Embedded Blog modules](https://developers.hubspot.com/docs/cms) as an alternative approach.

Let me know if this helps, or if you have any other questions!

* * *

✔ Was I able to help answer your question? Help the community by **marking it as a solution.**

| ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/3/d314478a36473977ed45320812b9331d25e0d3c4.jpeg) | **[Brandon Woodruff](https://www.linkedin.com/in/brandon-woody-woodruff/)**  
Senior Software Developer @ [Pearagon](https://www.pearagon.com/)Still have questions? Reach out at [brandon@pearagon.com](mailto:brandon@pearagon.com) ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/c/dcad77e6cf96145dd117147531ae4423b9b5cd91.png) |

* * *

---

<div class="post-metadata">

**Author:** ![CR33](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cr33/32/207960_2.png) [@CR33](https://community.hubspot.com/u/CR33)\
**Post date:** [July 17, 2025, 1:56pm UTC](https://community.hubspot.com/t/adobe-commerce-cloud-reverse-proxy/136405/3 "2025-07-17T13:56:50Z")

</div>

Hi Brandon,  
Thanks for the update. I have configured the proxy setup using “ **Fastly Edge Modules - Other CMS/Backend integration** ”. But when I hit the URL, it shows 403 from cloudflare. Since we are in adobe commerce cloud, I beleive this 403 comes from Hubspot.

 ![Screenshot from 2025-07-17 19-24-16.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/6/66ec2c1e083c60bd2232851035d6c96e5c0e39f9.png)

Regards,  
Chandru R

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [July 22, 2025, 6:45pm UTC](https://community.hubspot.com/t/adobe-commerce-cloud-reverse-proxy/136405/4 "2025-07-22T18:45:03Z")

</div>

Hey, @CR33 👋 You may need to reach out to the 3rd party app creator for support or help troubleshooting this. It’s becasue our community members won’t have access to the needed information to give you a clue to the root cause. — Jaycee
