Apology for this question in this time of years.
I am trying out to setup reverse proxy between hubspot enterprise sandbox + nginx reverse proxy.
so our main domain is `example.com` and we are want to use link our subdomain to hubspot, let say it is `www.cms.example.com `. I have setup our nginx config like this
location ~ ^(/hs|/_hcms|/hubfs|/hs-fs|/cs/c) {
proxy_pass https://xxx.sites-proxy.hscoscdn10.net;
proxy_pass_request_headers on;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-HubSpot-Client-IP $proxy_protocol_addr;
proxy_set_header X-HubSpot-Trust-Forwarded-For true;
proxy_set_header X-Real-IP $proxy_protocol_addr;
proxy_set_header Host $host;
proxy_set_header X-HS-Public-Host www.cms.example.com;
proxy_ssl_server_name on;
}
On hubspot verification, i can see that there is a request coming in and we are getting error like
"GET /_hcms/status HTTP/1.1" 421 171 "-" "HubSpot Connect 2.0 (http://dev.hubspot.com/) (namespace: chase.redirect.http.client) - CosDomainsWeb-userweb" "143.244.87.71,10.160.11.37"
I am trying to figure out what I missed and I hope someone can leave hints or guides on what should I do to get more info and pinpoint what is going on
Thanks in advance and happy holiday ![]()