# Port (:3001) / subdomain issue

**URL:** https://meta.discourse.org/t/port-3001-subdomain-issue/229689
**Category:** Self-hosting
**Created:** [June 11, 2022, 10:32pm UTC](https://meta.discourse.org/t/port-3001-subdomain-issue/229689 "2022-06-11T22:32:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Robert\_Winkler](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robert_winkler/32/263360_2.png) [@Robert\_Winkler](https://meta.discourse.org/u/Robert_Winkler)
#### Post date: [June 11, 2022, 10:32pm UTC](https://meta.discourse.org/t/port-3001-subdomain-issue/229689/1 "2022-06-11T22:32:04Z")

</div>

Hi, I deployed discourse on a server with other services running.  
Thus, I changed the port in app.yml to :3001 and created a subdomain directing to it.  
When I open subdomain.discourse.xx I am redirected to discourse:3001.  
I can register, and the verification mail is sent. However, I cannot verify my email because I always deviate to the port, I suppose…  
How can I specify that the subdomain is used instead of the port?  
I’m using an Ionos Vps. Is is maybe a DNS issue? Can I solve it?

---

<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: [June 12, 2022, 1:21am UTC](https://meta.discourse.org/t/port-3001-subdomain-issue/229689/2 "2022-06-12T01:21:37Z")

</div>

Discourse only works on 80/443. You’ll need to see [How to set up Discourse on a server with existing Apache sites](https://meta.discourse.org/t/how-to-set-up-discourse-on-a-server-with-existing-apache-sites/30013) or [Setting up Discourse on a machine with existing Nginx](https://meta.discourse.org/t/setting-up-discourse-on-a-machine-with-existing-nginx/121869)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [October 27, 2022, 11:32am UTC](https://meta.discourse.org/t/port-3001-subdomain-issue/229689/3 "2022-10-27T11:32:06Z")

</div>

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