# How do you deploy to a domain that has CloudFlare proxying it?

**URL:** https://discourse.roots.io/t/how-do-you-deploy-to-a-domain-that-has-cloudflare-proxying-it/12913
**Category:** trellis
**Created:** 2018-07-12T04:49:06Z
**Posts:** 4

## Post 1 by @s3w47m88 — 2018-07-12T04:49:06Z

I built a site, [MyExample.com](http://MyExample.com) that now uses CloudFlare, thus proxying traffic. Which, understandably, prevents Trellis from deploying via [MyExample.com](http://MyExample.com). I’m aware I can connect via IP or an unproxied CName (Ex. [ssh.MyExample.com](http://ssh.MyExample.com)). But I am unclear about which file(s) I edit in Trellis so the deploy uses the IP or unproxied domain.

I think that editing the `hosts` file for production would do the trick, but I am afraid to changing such critical settings and destroy or damage a production environment.

Is it as simple as update the URL there? Or is there more to it?

---

## Post 2 by @ben — 2018-07-12T14:35:14Z

> [@s3w47m88](#):
>
> I think that editing the `hosts` file for production would do the trick

This is the answer

> [@s3w47m88](#):
>
> but I am afraid to changing such critical settings and destroy or damage a production environment.

Sometimes you need to just try things out for yourself instead of coming to Roots Discourse and asking for permission…

---

## Post 3 by @ben — 2018-07-12T14:35:17Z



---

## Post 4 by @s3w47m88 — 2018-07-12T15:29:35Z

In my experience trying something like this is highly probable to break the system. Given this change occurs on a production site and this is something that could be in documentation I don’t see any problem with asking.

Thank you for confirming.
