# How to allow customs hosts in development mode

**URL:** <https://meta.discourse.org/t/how-to-allow-customs-hosts-in-development-mode/129958>\
**Category:** Development\
**Created:** [October 1, 2019, 2:45pm UTC](https://meta.discourse.org/t/how-to-allow-customs-hosts-in-development-mode/129958 "2019-10-01T14:45:56Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mompo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mompo/32/157564_2.png) [@mompo](https://meta.discourse.org/u/mompo)\
**Post date:** [October 1, 2019, 2:45pm UTC](https://meta.discourse.org/t/how-to-allow-customs-hosts-in-development-mode/129958/1 "2019-10-01T14:45:57Z")

</div>

Hi.

I’m new to discourse and started diving into it by setting up a development system, following [this](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727) howto.  
Afterwards I was able to access my instance via ip address, but trying to access via hostname fails with following message:

> Blocked host: discourse\_example\_net  
> To allow requests to discourse\_example\_net, add the following to your environment configuration:  
> config.hosts \<\< “discourse\_example\_net”

I found [this PR](https://review.discourse.org/t/dev-allow-custom-hosts-in-development-mode/5668), but I don’t know how to set the env var.

Best,  
Luis

---

_[View the full topic](https://meta.discourse.org/t/how-to-allow-customs-hosts-in-development-mode/129958)._
