# Ngnix config is not retained after rebuild

**URL:** <https://meta.discourse.org/t/ngnix-config-is-not-retained-after-rebuild/34602>\
**Category:** Self-hosting\
**Created:** [Octobre 16, 2015, 12:56 UTC](https://meta.discourse.org/t/ngnix-config-is-not-retained-after-rebuild/34602 "2015-10-16T12:56:55Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![11122](https://avatars.discourse-cdn.com/v4/letter/1/6a8cbe/32.png) [@11122](https://meta.discourse.org/u/11122)\
**Post date:** [Octobre 16, 2015, 12:56 UTC](https://meta.discourse.org/t/ngnix-config-is-not-retained-after-rebuild/34602/1 "2015-10-16T12:56:55Z")

</div>

I have to modify the default nginx config. But, after a rebuild, the modifications are not retained. Does anyone have a solution for this?  
And what’s the differents between etc/nginx/conf.d/discourse.conf and etc/nginx/nginx.conf?

---

_[View the full topic](https://meta.discourse.org/t/ngnix-config-is-not-retained-after-rebuild/34602)._
