<?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 Reverse proxy on IIS server in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Reverse-proxy-on-IIS-server/m-p/725468#M31682</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm trying to set up a reverse proxy for the blog by following this tutorial :&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/cms/developer-reference/reverse-proxy-support" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/cms/developer-reference/reverse-proxy-support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The domain is configured on Hubspot and "Ready for publishing".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The IIS server is configured to enable proxy. I have defined rewrite rules for &lt;A href="http://www.mydomain.com/en/blog" target="_blank" rel="noopener"&gt;www.mydomain.com/en/blog&lt;/A&gt;&amp;nbsp;to &lt;A href="https://HubID.suffix/en/blog" target="_blank" rel="noopener"&gt;https://HubID.suffix/en/blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(and also for&amp;nbsp;&lt;STRONG&gt;/_hcms/*&lt;/STRONG&gt;&lt;SPAN&gt;,&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;/hs/*&lt;/STRONG&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;/hubfs/*&lt;/STRONG&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;/hs-fs/*&lt;/STRONG&gt;​&lt;SPAN&gt;, and&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;/cs/c/*&lt;/STRONG&gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The proxy seems to be correct, as it works if I change the rewrite rule to &lt;A href="http://www.google.com" target="_blank" rel="noopener"&gt;www.google.com&lt;/A&gt;&amp;nbsp;for example)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But with the Hubspot URL, this is the page displayed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DenisG_0-1669914698931.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/80325iDF67D0AF0E17404E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DenisG_0-1669914698931.png" alt="DenisG_0-1669914698931.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The diagnostic page doesn't work too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see the HTTP headers&amp;nbsp;&lt;STRONG&gt;x-hubspot-trust-forwarded-for&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN&gt;and&amp;nbsp;&lt;STRONG&gt;x-hs-public-host&lt;/STRONG&gt;, but there is also the following ones :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;x-hubspot-notfound:&amp;nbsp;true&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;STRONG&gt;x-hs-reason:&amp;nbsp;domain XXXXX.sites-proxy.hscoscdn10.net does not exist&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know what I'm missing. Any help would be greatly appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2022 20:51:44 GMT</pubDate>
    <dc:creator>DenisG</dc:creator>
    <dc:date>2022-12-01T20:51:44Z</dc:date>
    <item>
      <title>Reverse proxy on IIS server</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Reverse-proxy-on-IIS-server/m-p/725468#M31682</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm trying to set up a reverse proxy for the blog by following this tutorial :&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/cms/developer-reference/reverse-proxy-support" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/cms/developer-reference/reverse-proxy-support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The domain is configured on Hubspot and "Ready for publishing".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The IIS server is configured to enable proxy. I have defined rewrite rules for &lt;A href="http://www.mydomain.com/en/blog" target="_blank" rel="noopener"&gt;www.mydomain.com/en/blog&lt;/A&gt;&amp;nbsp;to &lt;A href="https://HubID.suffix/en/blog" target="_blank" rel="noopener"&gt;https://HubID.suffix/en/blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(and also for&amp;nbsp;&lt;STRONG&gt;/_hcms/*&lt;/STRONG&gt;&lt;SPAN&gt;,&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;/hs/*&lt;/STRONG&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;/hubfs/*&lt;/STRONG&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;/hs-fs/*&lt;/STRONG&gt;​&lt;SPAN&gt;, and&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;/cs/c/*&lt;/STRONG&gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The proxy seems to be correct, as it works if I change the rewrite rule to &lt;A href="http://www.google.com" target="_blank" rel="noopener"&gt;www.google.com&lt;/A&gt;&amp;nbsp;for example)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But with the Hubspot URL, this is the page displayed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DenisG_0-1669914698931.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/80325iDF67D0AF0E17404E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DenisG_0-1669914698931.png" alt="DenisG_0-1669914698931.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The diagnostic page doesn't work too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see the HTTP headers&amp;nbsp;&lt;STRONG&gt;x-hubspot-trust-forwarded-for&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN&gt;and&amp;nbsp;&lt;STRONG&gt;x-hs-public-host&lt;/STRONG&gt;, but there is also the following ones :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;x-hubspot-notfound:&amp;nbsp;true&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;STRONG&gt;x-hs-reason:&amp;nbsp;domain XXXXX.sites-proxy.hscoscdn10.net does not exist&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know what I'm missing. Any help would be greatly appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 20:51:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Reverse-proxy-on-IIS-server/m-p/725468#M31682</guid>
      <dc:creator>DenisG</dc:creator>
      <dc:date>2022-12-01T20:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse proxy on IIS server</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Reverse-proxy-on-IIS-server/m-p/726003#M31720</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/485350"&gt;@DenisG&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out. I'll tag in&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/426475"&gt;@coldrickjack&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/401263"&gt;@LeeBartelme&lt;/a&gt;&amp;nbsp; &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259"&gt;@Mike_Eastwood&lt;/a&gt;&amp;nbsp;and add this post for reference —&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/CMS-Development/Lessons-Learned-from-Setting-up-a-Reverse-Proxy-With-HubSpot-CMS/td-p/435961" target="_blank" rel="noopener"&gt;Lessons Learned from Setting up a Reverse Proxy With HubSpot CMS (includes sample nginx config!)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 19:01:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Reverse-proxy-on-IIS-server/m-p/726003#M31720</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-12-02T19:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse proxy on IIS server</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Reverse-proxy-on-IIS-server/m-p/727013#M31760</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the link but it didn't help.&lt;/P&gt;&lt;P&gt;I realised that I was not sending correctly the HTTP headers, now it's ok, but still not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm seeing a 404&amp;nbsp;when going to the diagnostics URL &lt;A href="https://[yourFullDomain]/_hcms/diagnostics" target="_blank" rel="noopener"&gt;https://[myDomain]/_hcms/diagnostics&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the headers from the&amp;nbsp;&lt;A href="https://[yourFullDomain]/_hcms/diagnostics" target="_blank" rel="noopener"&gt;https://[myDomain]/_hcms/_worker/headers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
accept-encoding: "gzip"
accept-language: "en-US,en;q=0.9,fr;q=0.8,pt;q=0.7,es;q=0.6,fr-FR;q=0.5,pt-PT;q=0.4"
cache-control: "no-cache"
cf-connecting-ip: "[serverIp]"
cf-ipcountry: "NL"
cf-ray: "7753bf3d4cb2b902"
cf-visitor: "{"scheme":"https"}"
connection: "Keep-Alive"
cookie: "[removed]"
host: "[myHubId].sites-proxy.hscoscdn10.net"
max-forwards: "10"
pragma: "no-cache"
sec-ch-ua: ""Not?A_Brand";v="8", "Chromium";v="108", "Google Chrome";v="108""
sec-ch-ua-mobile: "?0"
sec-ch-ua-platform: ""Windows""
sec-fetch-dest: "document"
sec-fetch-mode: "navigate"
sec-fetch-site: "none"
sec-fetch-user: "?1"
true-client-ip: "[serverIp]"
upgrade-insecure-requests: "1"
user-agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
x-arr-log-id: "148e19d4-faa1-4854-accd-68950963dac3"
x-arr-ssl: "2048|256|C=GB, S=Greater Manchester, L=Salford, O=Sectigo Limited, CN=Sectigo RSA Domain Validation Secure Server CA|CN=isdecisions.com"
x-forwarded-for: "185.182.168.24:57334"
x-forwarded-proto: "https"
x-hs-cfworker-source: "hs-cos-cdn-worker"
x-hs-public-host: "[www.myDomain.com]"
x-hs-zone-name: "hscoscdn10.net"
x-hubspot-trust-forwarded-for: "true"
x-original-url: "/_hcms/_worker/headers"
x-real-ip: "[serverIp]"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When visiting &lt;A href="https://www.mydomain.com/en/blog" target="_blank" rel="noopener"&gt;https://www.mydomain.com/en/blog&lt;/A&gt;&amp;nbsp;I can see the following Request Headers :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;x-hs-reason:&amp;nbsp;domain [&lt;A href="http://www.mydomain.com" target="_blank" rel="noopener"&gt;www.mydomain.com&lt;/A&gt;] does not exist&lt;/P&gt;&lt;P&gt;x-hubspot-correlation-id: 479250b3-8597-49f3-a49a-50bdb42de334&lt;/P&gt;&lt;DIV class=""&gt;x-hubspot-notfound: true&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;which means that the x-hs-public-host header is correctly configured right ?&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;So I don't know what's missing here.&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Dec 2022 09:01:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Reverse-proxy-on-IIS-server/m-p/727013#M31760</guid>
      <dc:creator>DenisG</dc:creator>
      <dc:date>2022-12-06T09:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Reverse proxy on IIS server</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Reverse-proxy-on-IIS-server/m-p/727180#M31763</link>
      <description>&lt;P&gt;The domain status is now "Connected to reverse proxy", so configuration looks ok, but pages are still "not available".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DenisG_0-1670336008508.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/80606i2C80E7DC32284C77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DenisG_0-1670336008508.png" alt="DenisG_0-1670336008508.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 14:13:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Reverse-proxy-on-IIS-server/m-p/727180#M31763</guid>
      <dc:creator>DenisG</dc:creator>
      <dc:date>2022-12-06T14:13:55Z</dc:date>
    </item>
  </channel>
</rss>

