# Forcing access to Discourse via domain name only

**URL:** <https://meta.discourse.org/t/forcing-access-to-discourse-via-domain-name-only/70574>\
**Category:** Self-hosting\
**Created:** [Setembro 22, 2017, 1:39pm UTC](https://meta.discourse.org/t/forcing-access-to-discourse-via-domain-name-only/70574 "2017-09-22T13:39:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [Outubro 5, 2017, 1:25pm UTC](https://meta.discourse.org/t/forcing-access-to-discourse-via-domain-name-only/70574/3 "2017-10-05T13:25:23Z")

</div>

It sounds like your question is something like:

host:port at 123.123.123.123:8080  
domain `example.com` maps to host:port  
you don’t want requests for host:port to work, but only requests for the domain that are mapped to the host:port

But that doesn’t make sense to me and the code example you posted isn’t about that so I am confused.

What instructions did you follow for your install and is this a domain name, host IP, or port problem?

---

_[View the full topic](https://meta.discourse.org/t/forcing-access-to-discourse-via-domain-name-only/70574)._
