# Using a Reverse Proxy with HubSpot

**URL:** <https://community.hubspot.com/t/using-a-reverse-proxy-with-hubspot/63802>\
**Category:** APIs & Integrations\
**Created:** [August 26, 2022, 8:53am UTC](https://community.hubspot.com/t/using-a-reverse-proxy-with-hubspot/63802 "2022-08-26T08:53:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PTrojanowski](https://avatars.discourse-cdn.com/v4/letter/p/7ba0ec/32.png) [@PTrojanowski](https://community.hubspot.com/u/PTrojanowski)\
**Post date:** [August 26, 2022, 8:53am UTC](https://community.hubspot.com/t/using-a-reverse-proxy-with-hubspot/63802/1 "2022-08-26T08:53:53Z")

</div>

Hi,

I just read that new article about how to to using reverse proxy with HubSpot: [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/cms/developer-reference/reverse-proxy-support) .

Now I am wondering if there is a possiblity to use reverse proxy via nginx to proxy subdomain which is hosted at HubSpot to main domain directory.

Eg.: [blog.mydomain.com](http://blog.mydomain.com) (HubSpot) proxy to [mydomain.com/blog](http://mydomain.com/blog) (nginx)

---

<div class="post-metadata">

**Author:** ![coldrickjack](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/coldrickjack/32/6684_2.png) [@coldrickjack](https://community.hubspot.com/u/coldrickjack)\
**Post date:** [August 26, 2022, 9:29am UTC](https://community.hubspot.com/t/using-a-reverse-proxy-with-hubspot/63802/2 "2022-08-26T09:29:05Z")

</div>

Hey @PTrojanowski,

There should be no issues doing this with nginx. I’d recommend checking out this [article](https://community.hubspot.com/t5/CMS-Development/Lessons-Learned-from-Setting-up-a-Reverse-Proxy-With-HubSpot-CMS/td-p/435961) posted by HubSpot Solution Architect Robert Ainslie. It goes into a lot of detail as to how to set this up.

---

<div class="post-metadata">

**Author:** ![PTrojanowski](https://avatars.discourse-cdn.com/v4/letter/p/7ba0ec/32.png) [@PTrojanowski](https://community.hubspot.com/u/PTrojanowski)\
**Post date:** [August 26, 2022, 10:11am UTC](https://community.hubspot.com/t/using-a-reverse-proxy-with-hubspot/63802/3 "2022-08-26T10:11:28Z")

</div>

Hey @coldrickjack,

yes, but I read something like this in this article: “you want the initiating domain to be the exact same that you add to HubSpot”. That way I guess its not possible use proxy with subdomain.
