# 电子邮件中的错误链接

**URL:** https://meta.discourse.org/t/wrong-links-in-email/65731
**Category:** Support
**Created:** [2017年七月6日 11:22 UTC](https://meta.discourse.org/t/wrong-links-in-email/65731 "2017-07-06T11:22:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ric79](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@ric79](https://meta.discourse.org/u/ric79)
#### Post date: [2017年七月6日 11:22 UTC](https://meta.discourse.org/t/wrong-links-in-email/65731/1 "2017-07-06T11:22:53Z")

</div>

Hello,  
I installed discourse on [http://x.y.8.242:25654](http://x.y.8.242:25654) ( [http://discourse.yyy.xxx.it:25654](http://discourse.yyy.xxx.it:25654) )

Then, in antoher machine x.y.8.100, I setup an ngnix proxy for https

> server {  
> listen 443 ssl spdy;  
> server\_name discourse . svtools . yyy . xxx . it;  
> keepalive\_timeout 70;  
> gzip on;  
> location / {  
> proxy\_set\_header X-Real-IP $remote\_addr;  
> proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for;  
> proxy\_set\_header Host $http\_host;  
> proxy\_set\_header X-NginX-Proxy true;  
> proxy\_pass http:// discourse . yyy . xxx . it:25654/;  
> proxy\_redirect off;  
> proxy\_http\_version 1.1;  
> proxy\_set\_header Upgrade $http\_upgrade;  
> proxy\_set\_header Connection “upgrade”;  
> }  
> }

When user receives a mail notification, the links in the email refer to the backend.

Examples  
Visit Topic: [http://discourse.yyy.xxx.it/t/mytest/16/6](http://discourse.yyy.xxx.it/t/mytest/16/6)  
User: [http://discourse.yyy.xxx.it/u/00918220](http://discourse.yyy.xxx.it/u/00918220)

May I modify this behaviour?

Riccardo

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2017年七月6日 13:23 UTC](https://meta.discourse.org/t/wrong-links-in-email/65731/2 "2017-07-06T13:23:25Z")

</div>

Put the host name that you want to use in app.yml rather than the back end host name.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024年六月8日 12:44 UTC](https://meta.discourse.org/t/wrong-links-in-email/65731/3 "2024-06-08T12:44:26Z")

</div>

此主题已在 2529 天后自动关闭。不再允许回复。
