# Help Installing Certbot certificate when using server behind proxy server

**URL:** <https://community.letsencrypt.org/t/help-installing-certbot-certificate-when-using-server-behind-proxy-server/126299>\
**Category:** Help\
**Created:** [June 19, 2020, 2:52pm UTC](https://community.letsencrypt.org/t/help-installing-certbot-certificate-when-using-server-behind-proxy-server/126299 "2020-06-19T14:52:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zcarter](https://avatars.discourse-cdn.com/v4/letter/z/7c8e57/32.png) [@zcarter](https://community.letsencrypt.org/u/zcarter)\
**Post date:** [June 19, 2020, 2:52pm UTC](https://community.letsencrypt.org/t/help-installing-certbot-certificate-when-using-server-behind-proxy-server/126299/1 "2020-06-19T14:52:56Z")

</div>

Do I follow the instructions for the Apache or for Haproxy since traffic goes through the proxy server first?

My web server is (include version): Apache

My proxy web server is (include version): Haproxy

The operating system my web server runs on is (include version): CentOS 6

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)\
**Post date:** [June 19, 2020, 4:34pm UTC](https://community.letsencrypt.org/t/help-installing-certbot-certificate-when-using-server-behind-proxy-server/126299/2 "2020-06-19T16:34:58Z")

</div>

I _think_ this kinda depends on the situation of your webserver layout, but I recon it would be most logical to install the certificate on your HAproxy instance.

---

<div class="post-metadata">

**Author:** ![zcarter](https://avatars.discourse-cdn.com/v4/letter/z/7c8e57/32.png) [@zcarter](https://community.letsencrypt.org/u/zcarter)\
**Post date:** [June 19, 2020, 4:37pm UTC](https://community.letsencrypt.org/t/help-installing-certbot-certificate-when-using-server-behind-proxy-server/126299/4 "2020-06-19T16:37:21Z")

</div>

I just got word that we use a caching server on port 81 and the site says port 80.

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)\
**Post date:** [June 19, 2020, 4:39pm UTC](https://community.letsencrypt.org/t/help-installing-certbot-certificate-when-using-server-behind-proxy-server/126299/5 "2020-06-19T16:39:37Z")

</div>

How do you mean, exactly? To me personally, this doesn’t means much.

---

<div class="post-metadata">

**Author:** ![zcarter](https://avatars.discourse-cdn.com/v4/letter/z/7c8e57/32.png) [@zcarter](https://community.letsencrypt.org/u/zcarter)\
**Post date:** [June 19, 2020, 4:41pm UTC](https://community.letsencrypt.org/t/help-installing-certbot-certificate-when-using-server-behind-proxy-server/126299/6 "2020-06-19T16:41:06Z")

</div>

we run Varnish as a caching server for Drupal on port 81…but I notice that all of this gets set up with port 80…so this may not work due to how Varnish handles requests to the site on the alternate port

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [July 19, 2020, 4:41pm UTC](https://community.letsencrypt.org/t/help-installing-certbot-certificate-when-using-server-behind-proxy-server/126299/7 "2020-07-19T16:41:08Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
