# 在非80端口的网页端口上激活链接出现问题，再次发生

**URL:** https://meta.discourse.org/t/trouble-with-activation-links-with-web-port-other-than-80-again/31056
**Category:** Support
**Tags:** docker
**Created:** [2015年七月14日 21:19 UTC](https://meta.discourse.org/t/trouble-with-activation-links-with-web-port-other-than-80-again/31056 "2015-07-14T21:19:15Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Blaisorblade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blaisorblade/32/107357_2.png) [@Blaisorblade](https://meta.discourse.org/u/Blaisorblade)
#### Post date: [2015年七月14日 21:19 UTC](https://meta.discourse.org/t/trouble-with-activation-links-with-web-port-other-than-80-again/31056/1 "2015-07-14T21:19:15Z")

</div>

I just installed discourse through Docker, running on port 8008 (because port 80 is unavailable, and I’m not going to setup reverse proxying for now). Yet, activation links don’t include port 8008 so they don’t work unless corrected by hand. How do I inform Discourse of the port it’s running behind?

An earlier discussion, [Trouble with activation links with web port other than 80](https://meta.discourse.org/t/trouble-with-activation-links-with-web-port-other-than-80/19532/2), suggested:

> [@switch2mac](#):
>
> Goto admin-\>settings-\>developer and change port to 8080 (default is empty).

but this setting appears to have been removed.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2015年七月15日 01:41 UTC](https://meta.discourse.org/t/trouble-with-activation-links-with-web-port-other-than-80-again/31056/2 "2015-07-15T01:41:38Z")

</div>

We do not support production sites on any ports other than default http and HTTPS. If you need a different port you must be in local development mode.

---

<div class="post-metadata">

### Author: ![orionx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/orionx/32/50074_2.png) [@orionx](https://meta.discourse.org/u/orionx)
#### Post date: [2016年一月21日 20:23 UTC](https://meta.discourse.org/t/trouble-with-activation-links-with-web-port-other-than-80-again/31056/3 "2016-01-21T20:23:31Z")

</div>

Yeah, but in my case another port is mandatory (part of my university policies). Now Discourse is running on 8084 and all mails will go wrong to users. So sad.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016年一月21日 20:48 UTC](https://meta.discourse.org/t/trouble-with-activation-links-with-web-port-other-than-80-again/31056/4 "2016-01-21T20:48:00Z")

</div>

Pretty sure you could proxy those ports through nginx.

---

<div class="post-metadata">

### Author: ![orionx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/orionx/32/50074_2.png) [@orionx](https://meta.discourse.org/u/orionx)
#### Post date: [2016年一月22日 11:31 UTC](https://meta.discourse.org/t/trouble-with-activation-links-with-web-port-other-than-80-again/31056/5 "2016-01-22T11:31:59Z")

</div>

Yeah of course, but in 80 port is running a PHP website (Joomla!). It’s a common thing in Brazil to use a server to deliver multiple services, because it’s so expensive to buy or to rent IT Solutions here.

---

<div class="post-metadata">

### Author: ![Blaisorblade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blaisorblade/32/107357_2.png) [@Blaisorblade](https://meta.discourse.org/u/Blaisorblade)
#### Post date: [2016年一月22日 20:27 UTC](https://meta.discourse.org/t/trouble-with-activation-links-with-web-port-other-than-80-again/31056/6 "2016-01-22T20:27:52Z")

</div>

Similar setups are common outside Brazil for various reasons — see “virtualization” (I think it went from buzzword to commodity).

It is still _technically_ possible to have both services on the same port, exactly as Jeff Atwood said: you run nginx on port 80 and make it dispatch to either Joomla or Discourse based on the request (google “nginx reverse proxy” for info). Most people do use different hostnames, but I suspect you could even use different directories for that.

But if you talk about “university policies”, you might not have the privileges for the right setup (although, if you can run Docker, that’s very confusing).

---

<div class="post-metadata">

### Author: ![orionx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/orionx/32/50074_2.png) [@orionx](https://meta.discourse.org/u/orionx)
#### Post date: [2016年一月25日 17:21 UTC](https://meta.discourse.org/t/trouble-with-activation-links-with-web-port-other-than-80-again/31056/7 "2016-01-25T17:21:18Z")

</div>

Guys it’s not a installation problem. In fact, I’m a Computer Scientist, but in my university, I only have right to enable 1 server with 1 subdomain. In port 80 runs another service that I need to my project and I can change right now to other port. So sad.

---

<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:45 UTC](https://meta.discourse.org/t/trouble-with-activation-links-with-web-port-other-than-80-again/31056/8 "2024-06-08T12:45:52Z")

</div>

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