# IP does not redirect to domain, domain shows white page

**URL:** <https://meta.discourse.org/t/ip-does-not-redirect-to-domain-domain-shows-white-page/140112>\
**Category:** Self-hosting\
**Tags:** unsupported-install\
**Created:** [January 29, 2020, 9:01pm UTC](https://meta.discourse.org/t/ip-does-not-redirect-to-domain-domain-shows-white-page/140112 "2020-01-29T21:01:23Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Remah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/remah/32/70590_2.png) [@Remah](https://meta.discourse.org/u/Remah)\
**Post date:** [January 31, 2020, 5:52pm UTC](https://meta.discourse.org/t/ip-does-not-redirect-to-domain-domain-shows-white-page/140112/6 "2020-01-31T17:52:13Z")

</div>

Yes, Discourse can run on a domain:

> [@Configure your hosted Discourse site to run at the root or apex domain (e.g. example.com)](https://meta.discourse.org/t/configure-your-hosted-domain-name-at-the-root-example-com/60951):
>
> Most hosted discourse instances are on a subdomain: forum.example.com talk.example.com www.example.com This is our general recommendation in almost all cases, and it works great. However, if you wish to use a root domain or apex domain for your hosted discourse, like so example.com this turns out to be surprisingly difficult in a hosting scenario, due to the vagaries of how DNS works. thinking It is possible, however, you must use a DNS provider that specifically supports it! DNS pro…

CSP is described below. It is possibly related to your problem. If so then this topic tells you how to disable it so you can add your sources:

> [@Mitigate XSS Attacks with Content Security Policy](https://meta.discourse.org/t/mitigate-xss-attacks-with-content-security-policy/104243):
>
> bookmark This guide explains how to use Content Security Policy (CSP) to mitigate Cross-Site Scripting (XSS) attacks in Discourse. It covers CSP basics, configuration, and best practices. person_raising_hand Required user level: Administrator Summary Content Security Policy (CSP) is a crucial security feature in Discourse that helps protect against Cross-Site Scripting (XSS) and other injection attacks. This guide covers the basics of CSP, how it’s implemented in Discourse, and how to c…

---

_[View the full topic](https://meta.discourse.org/t/ip-does-not-redirect-to-domain-domain-shows-white-page/140112)._
