<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Issue with using Reverse Proxy with Hubspot in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Issue-with-using-Reverse-Proxy-with-Hubspot/m-p/814269#M34840</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/165038"&gt;@AAlsalkhadi&lt;/a&gt;&amp;nbsp;- based on my understanding of what you're trying to accomplish, this is not feasible and/or doesn't require HubSpot be part of the equation OR that you'll have to significantly alter how you're thinking about this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When setting up a reverse proxy, think of your HubSpot hosted content as one of the destinations of traffic and origins of content.&lt;/P&gt;
&lt;P&gt;In this circumstance, there are 2 content origins: the job portal and the HubSpot CMS hosted pages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You both describe a subdomain scenario and a 'main domain' scenario, but I'm going to assume your desired behavior is:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;A visitor requests a page of client-domain.com&lt;/LI&gt;
&lt;LI&gt;The page could originate from client-subdomain.rexx-systems.com OR from HubSpot CMS&lt;/LI&gt;
&lt;LI&gt;The visitor sees client-domain.com/some-HS-page&amp;nbsp; in their browser OR the client sees client-domain.com/some-job-post-page&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Assuming this is the desired behavior, you will need to set up a proxy so that all traffic to client-domain.com first hits a CDN or nginx server. Nginx then determines if the traffic should be routed to the HubSpot CMS or to the job portal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Traffic does not hit HubSpot's servers and then get proxied, rather, traffic hits your nginx server and that proxies to HubSpot OR to your secondary content origin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To set this up, you would have to disconnect your DNS from HubSpot's provided CNAME and instead point it at your proxy server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As such, if you attempt to do this, I would HIGHLY recommend contacting your HubSpot Customer Success Manger to discuss purchasing a Professional Services Techincal Consulting package to help with the specific details in planning this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Feel free to drop me a DM if you need assistance with finding who your Customer Success Manager is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if I've understood your desired behavior properly.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 14:47:59 GMT</pubDate>
    <dc:creator>robertainslie</dc:creator>
    <dc:date>2023-06-30T14:47:59Z</dc:date>
    <item>
      <title>Issue with using Reverse Proxy with Hubspot</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Issue-with-using-Reverse-Proxy-with-Hubspot/m-p/806029#M34595</link>
      <description>&lt;P&gt;Hallo ,&lt;BR /&gt;&lt;BR /&gt;I am currently in the process of reverse proxying a subdomain (client-domain-portal.rexx-systems.com) to another domain (client-domain.com) and have encountered some difficulties that I hope you can assist me with.&lt;BR /&gt;&lt;BR /&gt;For clarity:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;- I have used "client-domain-portal" as a placeholder for the actual subdomain name in this context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;-&amp;nbsp;&lt;CODE&gt;&lt;A href="http://rexx-systems.com" target="_blank" rel="noopener"&gt;rexx-systems.com&lt;/A&gt;&lt;/CODE&gt; is a&amp;nbsp;job portal and is an third party service provider. client-domain.com uses its services.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our primary domain, client-domain.com, is hosted on HubSpot. The challenge arises when I attempt to reverse proxy from "client-domain-portal.rexx-systems.com" to the HubSpot-hosted domain, as these two domains are distinct. My initial assumption was that it might not be feasible to reverse proxy "client-domain-portal.rexx-systems.com" to a subdomain of "client-domain.com" (like jobs.client-domain.com).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To troubleshoot, I tried to add the equivalent subdomain (client-domain-portal.client-domain.com) to the HubSpot Domain Manager without directly connecting it. Unfortunately, this attempt wasn't successful. I also attempted to add "client-domain-portal.rexx-systems.com" as suggested on &lt;A href="https://developers.hubspot.com/docs/cms/developer-reference/reverse-proxy-support" target="_blank" rel="noopener"&gt;Hubspot offical documentation for reverse proxy support.&lt;/A&gt;&amp;nbsp;In this documentation: I read that the&amp;nbsp;"added to HubSpot but not directly connected" domain must match the domain being requested through the reverse proxy, but this too was met with the same hurdle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Considering the above, I would greatly appreciate if you could provide guidance on how to structure the Nginx configuration file in this particular scenario and clarify which domains are permissible to add.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your reference, the HubSpot CNAME is something like XXXXXX67.sites-proxy.hscoscdn10.net.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following is a summary of how I understand it, please correct me, if I am wrong:&lt;/P&gt;
&lt;OL class=""&gt;
&lt;LI class="" data-list-indent="1" data-list-type="numbered"&gt;
&lt;P&gt;Domain ownership verification via pre-provisioning an SSL certificate is a crucial step: no direct domain connection ==&amp;gt; only the "pre-provisioning DNS records" have to be added to the DNS provider.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="" data-list-indent="1" data-list-type="numbered"&gt;
&lt;P&gt;the origin connection (proxy connection) is a HubSpot CNAME.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Host = X-HS-Public-Host = the content host domain "added to HubSpot Domain Manager but not directly connected" = HubSpot domain where content will be served from. ==&amp;gt; HubSpot systems are ‘aware’ of the domain.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;server {
    location /karrieres {
        proxy_set_header Host $http_host;

        proxy_pass_request_headers on;
        proxy_pass https://XXXXXX67.sites-proxy.hscoscdn10.net;


        proxy_set_header Accept-Encoding "";
        ssi on;

        proxy_set_header X-HS-Public-Host https://client-domain-portal.rexx-systems.com;


        proxy_ssl_server_name on;
        proxy_ssl_name https://client-domain-portal.rexx-systems.com;



       proxy_set_header X-HubSpot-Trust-Forwarded-For true;
       proxy_set_header X-Real-IP $proxy_protocol_addr;
       proxy_set_header X-Forwarded-Proto $scheme;
       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
       proxy_set_header X-HubSpot-Client-IP $proxy_protocol_addr;
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-pm-slice="0 0 []"&gt;Should I change &lt;CODE&gt;$http_host&lt;/CODE&gt;&amp;nbsp;to the content host domain?&lt;/P&gt;
&lt;P&gt;Is it right to have &lt;CODE&gt;X-HS-Public-Host&lt;/CODE&gt; and&amp;nbsp;&lt;CODE&gt;proxy_ssl_name&lt;/CODE&gt; set to the same domain?&lt;/P&gt;
&lt;P&gt;For testing purposes, I am using an Nginx Docker image for reverse proxying. I am wondering if this could be the source of the current issues? It is worth noting that the reverse proxy operates as expected when I direct client-domain-portal.rexx-systems.com to localhost.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My initial plan was to deploy the Docker image on Google Cloud Run. However, based on some recent findings, I am now considering Amazon CloudFront or AWS EC2/ELB as possible alternatives. Google Cloud CDN or Google Cloud Load Balancing are also on the table, but cost considerations will be a deciding factor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If anything is unclear, please do not hesitate to ask me.&lt;/P&gt;
&lt;P&gt;Thank you in advance for your time and assistance. I look forward to your expert guidance on this matter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Abdalrohman Alsalkhadi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1226"&gt;@robertainslie&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 13:38:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Issue-with-using-Reverse-Proxy-with-Hubspot/m-p/806029#M34595</guid>
      <dc:creator>AAlsalkhadi</dc:creator>
      <dc:date>2023-06-12T13:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using Reverse Proxy with Hubspot</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Issue-with-using-Reverse-Proxy-with-Hubspot/m-p/814269#M34840</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/165038"&gt;@AAlsalkhadi&lt;/a&gt;&amp;nbsp;- based on my understanding of what you're trying to accomplish, this is not feasible and/or doesn't require HubSpot be part of the equation OR that you'll have to significantly alter how you're thinking about this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When setting up a reverse proxy, think of your HubSpot hosted content as one of the destinations of traffic and origins of content.&lt;/P&gt;
&lt;P&gt;In this circumstance, there are 2 content origins: the job portal and the HubSpot CMS hosted pages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You both describe a subdomain scenario and a 'main domain' scenario, but I'm going to assume your desired behavior is:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;A visitor requests a page of client-domain.com&lt;/LI&gt;
&lt;LI&gt;The page could originate from client-subdomain.rexx-systems.com OR from HubSpot CMS&lt;/LI&gt;
&lt;LI&gt;The visitor sees client-domain.com/some-HS-page&amp;nbsp; in their browser OR the client sees client-domain.com/some-job-post-page&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Assuming this is the desired behavior, you will need to set up a proxy so that all traffic to client-domain.com first hits a CDN or nginx server. Nginx then determines if the traffic should be routed to the HubSpot CMS or to the job portal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Traffic does not hit HubSpot's servers and then get proxied, rather, traffic hits your nginx server and that proxies to HubSpot OR to your secondary content origin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To set this up, you would have to disconnect your DNS from HubSpot's provided CNAME and instead point it at your proxy server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As such, if you attempt to do this, I would HIGHLY recommend contacting your HubSpot Customer Success Manger to discuss purchasing a Professional Services Techincal Consulting package to help with the specific details in planning this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Feel free to drop me a DM if you need assistance with finding who your Customer Success Manager is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if I've understood your desired behavior properly.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 14:47:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Issue-with-using-Reverse-Proxy-with-Hubspot/m-p/814269#M34840</guid>
      <dc:creator>robertainslie</dc:creator>
      <dc:date>2023-06-30T14:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using Reverse Proxy with Hubspot</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Issue-with-using-Reverse-Proxy-with-Hubspot/m-p/815067#M34880</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1226"&gt;@robertainslie&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;thank you for the detailed reply.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Based on the information you provided, it would be fine, if we use a subdomain instead of the domain already connected to Hubspot. I am trying to make it work for jobs.&lt;SPAN&gt;client-domain.com.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I was able to connect this domain and verify the &lt;SPAN&gt;Domain ownership via pre-provisioning.&lt;BR /&gt;&lt;/SPAN&gt;Now I am wondering, How nginx.conf would look like, considering, that I am not sure yet, whether I should use Nginx in a Docker Container deployed on Google Cloud Run. I am also trying to configure it using Amazon CloudFront.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you please provide more information about that.&amp;nbsp;&lt;BR /&gt;I am not sure yet, how to reverse proxy&amp;nbsp;client-domain-portal.rexx-systems.com to&amp;nbsp;&lt;SPAN&gt;the&amp;nbsp;"added to HubSpot but not directly connected" domain.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;You mentioned in one of your replies:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"In HubSpot, I have the domain tc.robertpainslie.com added to my Domain Manager -&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;this is the exact domain I want to proxy!&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;DO NOT create a new subdomain that is added to HubSpot&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;- you want the initiating domain to be the exact same that you add to HubSpot.&amp;nbsp;When connecting, the domain should already be live and hosting content over a secure connection. When this happens, HubSpot will detect the existing secure connection and ask you to pre-provision SSL - take the CNAME and TXT record and verify in your DNS."&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you also mentioned, that &lt;SPAN&gt;the&amp;nbsp;"added to HubSpot but not directly connected" domain is also the domain, which will be displayed on hubspot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;What am I doing wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 20:16:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Issue-with-using-Reverse-Proxy-with-Hubspot/m-p/815067#M34880</guid>
      <dc:creator>AAlsalkhadi</dc:creator>
      <dc:date>2023-07-03T20:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with using Reverse Proxy with Hubspot</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Issue-with-using-Reverse-Proxy-with-Hubspot/m-p/895050#M37175</link>
      <description>&lt;P&gt;Sounds like a reverse proxy puzzle you've got. Considering your setup, have you explored &lt;A href="https://lightningproxies.net/" target="_blank" rel="noopener"&gt;Proxy solutions&lt;/A&gt;? They're pretty handy for handling distinct domain challenges like yours. In situations similar to yours, their configurations often streamline the process, making reverse proxy connections smoother.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 06:49:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Issue-with-using-Reverse-Proxy-with-Hubspot/m-p/895050#M37175</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-22T06:49:15Z</dc:date>
    </item>
  </channel>
</rss>

