# Nginx Proxied Server running Certbot: Wrong Certificate

**URL:** <https://community.letsencrypt.org/t/nginx-proxied-server-running-certbot-wrong-certificate/132635>\
**Category:** Help\
**Created:** [September 2, 2020, 9:03am UTC](https://community.letsencrypt.org/t/nginx-proxied-server-running-certbot-wrong-certificate/132635 "2020-09-02T09:03:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![\_az](https://avatars.discourse-cdn.com/v4/letter/_/22d042/32.png) [@\_az](https://community.letsencrypt.org/u/_az)\
**Post date:** [September 2, 2020, 10:12am UTC](https://community.letsencrypt.org/t/nginx-proxied-server-running-certbot-wrong-certificate/132635/2 "2020-09-02T10:12:40Z")

</div>

Server1 has to handle SSL for both servers. You can’t proxy encrypted traffic1.

So on Server1, you have to do:

```
certbot --nginx -d houseofavi.com

```

as well.

* * *

1. Not exactly accurate. You can do something called “SNI prereading” with ngx\_stream ([https://nginx.org/en/docs/stream/ngx\_stream\_ssl\_preread\_module.html](https://nginx.org/en/docs/stream/ngx_stream_ssl_preread_module.html)), but that’s fairly complicated to setup.

---

_[View the full topic](https://community.letsencrypt.org/t/nginx-proxied-server-running-certbot-wrong-certificate/132635)._
