# Changing root in nginx reverts upon close

**URL:** https://community.kinsta.com/t/changing-root-in-nginx-reverts-upon-close/1631
**Category:** Installation
**Created:** [July 20, 2022, 10:50am UTC](https://community.kinsta.com/t/changing-root-in-nginx-reverts-upon-close/1631 "2022-07-20T10:50:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![reformatco](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/reformatco/32/1333_2.png) [@reformatco](https://community.kinsta.com/u/reformatco)
#### Post date: [July 20, 2022, 10:50am UTC](https://community.kinsta.com/t/changing-root-in-nginx-reverts-upon-close/1631/1 "2022-07-20T10:50:18Z")

</div>

I have read through the config [here](https://community.kinsta.com/t/nginx-configuration-for-bedrock/201) and the steps work fine, although I have to open the terminal from the Docker GUI rather than with `docker exec -it devkinsta_nginx bash`

So the steps i do are:

1. Open terminal window on `devkinsta_nginx`
2. Run `cd etc/nginx/sites/`
3. Run `nano mysite.conf`
4. Change the root from `/www/kinsta/public/mysite` to `/www/kinsta/public/mysite/webroot`
5. Exit and save, then `nginx -s reload`

Site works fine but my site root within DevKinsta still shows the old one. If I close DevKinsta or start/stop site it then reverts back to the original root.

Do i have to do these steps every time i work on a job?

---

<div class="post-metadata">

### Author: ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)
#### Post date: [July 20, 2022, 9:35pm UTC](https://community.kinsta.com/t/changing-root-in-nginx-reverts-upon-close/1631/2 "2022-07-20T21:35:42Z")

</div>

Hi @reformatco, welcome to DevKinsta!  
Yes, unfortunately you will need to redo any NGINX container changes every time the NGINX container is restarted. I know our developers had this on their radar a while back but please feel free to submit a[Feature Request](https://community.kinsta.com/c/feature-requests/6) for easier NGINX configuration just to “bump” this issue up.
